From fd514802fc23604c9f4f08146ee5f5ac1e46e0c4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 7 Jul 2026 11:58:49 -0400 Subject: BUGFIX: Close pipe on realloc error --- src/lib/core/system.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit