Skip to content

Commit

Permalink
scripts: genksyms: fix resource leak
Browse files Browse the repository at this point in the history
This commit fixed resource leak at func main

Signed-off-by: Maxim Zhukov <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
Mephistophiles authored and Michal Marek committed Apr 20, 2016
1 parent dbacb0e commit 4deaaa4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/genksyms/genksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -873,5 +873,8 @@ int main(int argc, char **argv)
(double)nsyms / (double)HASH_BUCKETS);
}

if (dumpfile)
fclose(dumpfile);

return errors != 0;
}

0 comments on commit 4deaaa4

Please sign in to comment.