scripts: genksyms: fix resource leak

This commit fixed resource leak at func main

Signed-off-by: Maxim Zhukov <mussitantesmortem@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.com>
This commit is contained in:
Maxim Zhukov 2016-04-12 23:54:59 +03:00 committed by Michal Marek
parent dbacb0ef67
commit 4deaaa4deb

View File

@ -873,5 +873,8 @@ int main(int argc, char **argv)
(double)nsyms / (double)HASH_BUCKETS);
}
if (dumpfile)
fclose(dumpfile);
return errors != 0;
}