Skip to content

Commit

Permalink
free tt after printing
Browse files Browse the repository at this point in the history
This should cover all memory that isn't strdup'd out of kmod's private
allocations.
  • Loading branch information
falconindy committed Mar 18, 2012
1 parent ff6fa63 commit ebe48ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modtree.c
Expand Up @@ -426,6 +426,7 @@ int main(int argc, char *argv[])
}

tt_print_table(tt);
tt_free_table(tt);

kmod_unref(kmod);
return rc >= 0 ? EXIT_SUCCESS : EXIT_FAILURE;
Expand Down

0 comments on commit ebe48ab

Please sign in to comment.