Skip to content

Commit 79c2156

Browse files
committed
Fix memory leak in icastats
This shows up with --enable-sanitizer build. Suggested-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
1 parent c39e262 commit 79c2156

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/icastats.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ int main(int argc, char *argv[])
371371
} else {
372372
print_stats(stats, key_sizes);
373373
}
374-
374+
free(stats);
375375
}
376376
return EXIT_SUCCESS;
377377
}

0 commit comments

Comments
 (0)