aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/image.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 48625bbf285..571979ea132 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-06-22 Jim Meyering <meyering@redhat.com>
2
3 don't leak an XBM-image-sized buffer
4 * image.c (xbm_load): Free the image buffer after using it.
5
12011-06-21 Paul Eggert <eggert@cs.ucla.edu> 62011-06-21 Paul Eggert <eggert@cs.ucla.edu>
2 7
3 Port to Sun C. 8 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)
2829 } 2829 }
2830 2830
2831 success_p = xbm_load_image (f, img, contents, contents + size); 2831 success_p = xbm_load_image (f, img, contents, contents + size);
2832 xfree (contents);
2832 } 2833 }
2833 else 2834 else
2834 { 2835 {