mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-27 00:40:15 +03:00
Squash memory leak
svn path=/trunk/netsurf/; revision=9689
This commit is contained in:
parent
eba224e09e
commit
485e95c82e
@ -90,6 +90,7 @@ static struct list_counter *render_list_find_counter(const char *name) {
|
||||
counter->name = malloc(strlen(name) + 1);
|
||||
if (!counter->name) {
|
||||
LOG(("No memory for malloc()"));
|
||||
free(counter);
|
||||
return NULL;
|
||||
}
|
||||
strcpy(counter->name, name);
|
||||
|
Loading…
Reference in New Issue
Block a user