From: Jim Meyering Date: Wed, 22 Jun 2011 12:23:17 +0000 (+0200) Subject: don't leak an XBM-image-sized buffer X-Git-Tag: emacs-pretest-24.0.90~104^2~475 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d5a19415d0bc308557d754e4438a2656e16bb0ab;p=emacs.git don't leak an XBM-image-sized buffer * image.c (xbm_load): Free the image buffer after using it. --- diff --git a/src/ChangeLog b/src/ChangeLog index 48625bbf285..571979ea132 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-06-22 Jim Meyering + + don't leak an XBM-image-sized buffer + * image.c (xbm_load): Free the image buffer after using it. + 2011-06-21 Paul Eggert Port to Sun C. diff --git a/src/image.c b/src/image.c index 495bfdc0eef..802568101ea 100644 --- a/src/image.c +++ b/src/image.c @@ -2829,6 +2829,7 @@ xbm_load (struct frame *f, struct image *img) } success_p = xbm_load_image (f, img, contents, contents + size); + xfree (contents); } else {