mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 13:37:02 +03:00
Squash memory leak
svn path=/trunk/netsurf/; revision=9690
This commit is contained in:
parent
485e95c82e
commit
0846b2ac95
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user