wmgeneral: Free pointer.

Fixes "(error) Memory leak: argv" found by cppcheck.
This commit is contained in:
Doug Torrance 2015-05-19 22:30:45 -05:00 committed by Carlos R. Mafra
parent 746c4b6b7c
commit dae24a2f5d
10 changed files with 10 additions and 0 deletions

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -162,5 +162,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }

View file

@ -165,5 +165,6 @@ execCommand(char *command)
execvp(argv[0], args); execvp(argv[0], args);
exit(10); exit(10);
} }
free(argv);
return pid; return pid;
} }