aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2026-06-11 13:18:21 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2026-06-11 13:18:21 -0400
commitb3d4f84565bd40d2374f2bafe9417dfc2a0ff10a (patch)
tree8e960b2bd21ab7f4fda399ffd7c31e32a4df5d00 /src
parent05814ffa1e0ae4d90f9691926e06b93f5f8c71ae (diff)
downloadstasis-b3d4f84565bd40d2374f2bafe9417dfc2a0ff10a.tar.gz
Free result when shell_output fails
Diffstat (limited to 'src')
-rw-r--r--src/lib/core/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c
index b4a520d..3f8aeb4 100644
--- a/src/lib/core/utils.c
+++ b/src/lib/core/utils.c
@@ -611,6 +611,7 @@ int xml_pretty_print_in_place(const char *filename, const char *pretty_print_pro
snprintf(cmd, sizeof(cmd), "%s %s %s", pretty_print_prog, pretty_print_args, filename);
result = shell_output(cmd, &status);
if (status || !result) {
+ guard_free(result);
return status;
}