aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/core/system.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/system.c b/src/lib/core/system.c
index f0fd38f..d0956f4 100644
--- a/src/lib/core/system.c
+++ b/src/lib/core/system.c
@@ -177,6 +177,7 @@ char *shell_output(const char *command, int *status) {
current_size += initial_size;
char *tmp = realloc(result, sizeof(*result) * current_size);
if (!tmp) {
+ guard_free(result);
return NULL;
}
result = tmp;