diff options
| -rw-r--r-- | src/lib/core/system.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/system.c b/src/lib/core/system.c index 542f9fd..a8c9719 100644 --- a/src/lib/core/system.c +++ b/src/lib/core/system.c @@ -179,6 +179,7 @@ char *shell_output(const char *command, int *status) { current_size += initial_size; char *tmp = realloc(result, sizeof(*result) * current_size); if (!tmp) { + pclose(pp); guard_free(result); return NULL; } |
