Squash memory leak

svn path=/trunk/netsurf/; revision=9690
This commit is contained in:
John Mark Bell 2009-11-22 13:55:32 +00:00
parent 485e95c82e
commit 0846b2ac95
1 changed files with 1 additions and 0 deletions

View File

@ -542,6 +542,7 @@ bool imagemap_addtolist(xmlNode *n, char *base_url, struct mapentry **entry)
ycoords = realloc(new_map->bounds.poly.ycoords,
num * sizeof(float));
if (ycoords == NULL) {
free(xcoords);
free(new_map->bounds.poly.ycoords);
free(new_map->bounds.poly.xcoords);
free(new_map->target);