[Pkg-wmaker-commits] [wmppp.app] 64/120: wmgeneral: Free pointer.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Thu Aug 27 12:04:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmppp.app.

commit 5e49fbaf9c678a2a6ede96acdf67bfcd263ca694
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/wmppp.app.git



More information about the Pkg-wmaker-commits mailing list