Squash memory leak

svn path=/trunk/netsurf/; revision=9689
This commit is contained in:
John Mark Bell 2009-11-22 13:53:44 +00:00
parent eba224e09e
commit 485e95c82e
1 changed files with 1 additions and 0 deletions

View File

@ -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);