Fix a memory leak when daemonizing.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4820 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2007-09-19 15:20:25 +00:00
1 parent dbad6d7f8c
commit 4a5de7fb98
2 files changed
+2

No files matched your search

+1
View File
@@ -164,6 +164,7 @@ daemonize
} else if (pid != 0) {
fprintf (file, "%d\n", pid);
fclose (file);
unloadLib ();
exit (EXIT_SUCCESS);
}