emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r104672: don't leak an XBM-image-size


From: Jim Meyering
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r104672: don't leak an XBM-image-sized buffer
Date: Wed, 22 Jun 2011 14:23:17 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 104672
committer: Jim Meyering <address@hidden>
branch nick: trunk
timestamp: Wed 2011-06-22 14:23:17 +0200
message:
  don't leak an XBM-image-sized buffer
  
  * image.c (xbm_load): Free the image buffer after using it.
modified:
  src/ChangeLog
  src/image.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-06-21 16:47:56 +0000
+++ b/src/ChangeLog     2011-06-22 12:23:17 +0000
@@ -1,3 +1,8 @@
+2011-06-22  Jim Meyering  <address@hidden>
+
+       don't leak an XBM-image-sized buffer
+       * image.c (xbm_load): Free the image buffer after using it.
+
 2011-06-21  Paul Eggert  <address@hidden>
 
        Port to Sun C.

=== modified file 'src/image.c'
--- a/src/image.c       2011-06-13 08:00:15 +0000
+++ b/src/image.c       2011-06-22 12:23:17 +0000
@@ -2829,6 +2829,7 @@
        }
 
       success_p = xbm_load_image (f, img, contents, contents + size);
+      xfree (contents);
     }
   else
     {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]