[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] don't leak an XBM-image-sized buffer
From: |
Jim Meyering |
Subject: |
[PATCH] don't leak an XBM-image-sized buffer |
Date: |
Wed, 22 Jun 2011 14:24:33 +0200 |
FYI, just pushed:
------------------------------------------------------------
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.
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 <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'
--- 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
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] don't leak an XBM-image-sized buffer,
Jim Meyering <=