don't leak an XBM-image-sized buffer
* image.c (xbm_load): Free the image buffer after using it.
This commit is contained in:
parent
130e3e1121
commit
d5a19415d0
2 changed files with 6 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue