Two memory leaks found interactively with valgrind with safe fixes.
This commit is contained in:
parent
4fd0a68fb2
commit
fbebfb708c
|
|
@ -133,6 +133,7 @@ static void common(const char *string, const struct wordlist *wl,
|
||||||
w = process(w);
|
w = process(w);
|
||||||
/* O.K. now call fn */
|
/* O.K. now call fn */
|
||||||
command->co_func(w);
|
command->co_func(w);
|
||||||
|
wl_free(w);
|
||||||
}
|
}
|
||||||
} /* end of function common */
|
} /* end of function common */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1156,6 +1156,8 @@ void cp_vprint(void)
|
||||||
out_printf("( %s )\n", s);
|
out_printf("( %s )\n", s);
|
||||||
else
|
else
|
||||||
out_printf("%s\n", s);
|
out_printf("%s\n", s);
|
||||||
|
wl_free(wl);
|
||||||
|
tfree(s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue