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