* [PATCH] don't leak an XBM-image-sized buffer
@ 2011-06-22 12:24 Jim Meyering
0 siblings, 0 replies; only message in thread
From: Jim Meyering @ 2011-06-22 12:24 UTC (permalink / raw)
To: Emacs development discussions
FYI, just pushed:
------------------------------------------------------------
revno: 104672
committer: Jim Meyering <meyering@redhat.com>
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.
diff:
=== modified file 'src/ChangeLog'
--- src/ChangeLog 2011-06-21 16:47:56 +0000
+++ src/ChangeLog 2011-06-22 12:23:17 +0000
@@ -1,3 +1,8 @@
+2011-06-22 Jim Meyering <meyering@redhat.com>
+
+ don't leak an XBM-image-sized buffer
+ * image.c (xbm_load): Free the image buffer after using it.
+
2011-06-21 Paul Eggert <eggert@cs.ucla.edu>
Port to Sun C.
=== modified file 'src/image.c'
--- src/image.c 2011-06-13 08:00:15 +0000
+++ 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
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-06-22 12:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-22 12:24 [PATCH] don't leak an XBM-image-sized buffer Jim Meyering
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.