~emersion/mrsh

f37fccaa6f888fc8df7811958c53a1c5e8299fe9 — emersion 3 years ago a6446d7
Don't leak functions on shell exit
1 files changed, 1 insertions(+), 0 deletions(-)

M shell/shell.c
M shell/shell.c => shell/shell.c +1 -0
@@ 38,6 38,7 @@ static void function_destroy(struct mrsh_function *fn) {
	if (!fn) {
		return;
	}
	mrsh_command_destroy(fn->body);
	free(fn);
}