common/stringop.c: a premature decrement meant an element of argv was never released

master
Daniel Lockyer 9 years ago
parent fb41371444
commit 235cfd93b2

@ -144,7 +144,7 @@ char **split_args(const char *start, int *argc) {
}
void free_argv(int argc, char **argv) {
while (--argc > 0) {
while (argc-- > 0) {
free(argv[argc]);
}
free(argv);

Loading…
Cancel
Save