Skip to content
Snippets Groups Projects
Commit b78d5104 authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Fix memory leak in outputlist.c

parent f92e88db
Branches
Tags
1 merge request!637Fix memory leak
......@@ -112,6 +112,9 @@ void output_list_read_file(struct output_list *outputlist, const char *filename,
ind += 1;
}
/* Cleanup */
free(line);
if (ind != outputlist->size)
error("Did not read the correct number of output times.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment