From d5a19415d0bc308557d754e4438a2656e16bb0ab Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 22 Jun 2011 14:23:17 +0200 Subject: [PATCH] don't leak an XBM-image-sized buffer * image.c (xbm_load): Free the image buffer after using it. --- src/ChangeLog | 5 +++++ src/image.c | 1 + 2 files changed, 6 insertions(+) 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 { -- 2.39.2