don't leak an XBM-image-sized buffer

* image.c (xbm_load): Free the image buffer after using it.
This commit is contained in:
Jim Meyering 2011-06-22 14:23:17 +02:00
parent 130e3e1121
commit d5a19415d0
2 changed files with 6 additions and 0 deletions

View file

@ -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.

View file

@ -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
{