[Pkg-wmaker-commits] [wmmon] 15/38: wmgeneral: Free pointer.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Aug 12 22:43:07 UTC 2017
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch upstream
in repository wmmon.
commit 0a17e9c2f10f84db3d139bb1da2eb971fcb9758e
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Tue May 19 22:30:45 2015 -0500
wmgeneral: Free pointer.
Fixes "(error) Memory leak: argv" found by cppcheck.
---
wmgeneral/misc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/wmgeneral/misc.c b/wmgeneral/misc.c
index cdaf7e0..2ba6d06 100644
--- a/wmgeneral/misc.c
+++ b/wmgeneral/misc.c
@@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args);
exit(10);
}
+ free(argv);
return pid;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmmon.git
More information about the Pkg-wmaker-commits
mailing list