summary refs log tree commit diff
path: root/filter.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-04-06 20:42:00 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-04-06 21:02:16 +0200
commit9e8e0d38c9826b10bd56289ffc92d84bc22ba5f8 (patch)
treeed4645001089a80000f4269a96c818f6bec96d91 /filter.c
parentb0f5662c5f64eeac730be9e37fb306b8db230a8e (diff)
downloadmblaze-9e8e0d38c9826b10bd56289ffc92d84bc22ba5f8.tar.gz
mblaze-9e8e0d38c9826b10bd56289ffc92d84bc22ba5f8.tar.xz
mblaze-9e8e0d38c9826b10bd56289ffc92d84bc22ba5f8.zip
filter: free buffer on failure
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter.c b/filter.c
index d15e54e..9784573 100644
--- a/filter.c
+++ b/filter.c
@@ -100,6 +100,7 @@ filter(char *input, size_t inlen, char *cmd, char **outputo, size_t *outleno)
 fail:
 	*outputo = 0;
 	*outleno = 0;
+	free(output);
 
 	return -1;
 }