Skip to content

Commit 613ccbd

Browse files
committed
fix one more leak
1 parent 289dc3a commit 613ccbd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ausearch-lol.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,9 @@ int lol_add_record(lol *lo, char *buff)
371371
l = malloc(sizeof(llist));
372372
if (l == NULL) {
373373
free((char *)e.node);
374-
fprintf(stderr, "Out of memory. Check %s file, %d line", __FILE__, __LINE__);
374+
free(n.message);
375+
fprintf(stderr, "Out of memory. Check %s file, %d line",
376+
__FILE__, __LINE__);
375377
return 0;
376378
}
377379
list_create(l);

0 commit comments

Comments
 (0)