diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-11 13:18:21 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-06-22 10:13:57 -0400 |
| commit | 1a8a5994f6d90c0940eb6f8a5b30eac3952bf9af (patch) | |
| tree | e92c3e0ef5ded49f6e32cecfe1e8184208890225 | |
| parent | e877e9c3180455217c231a50a3c0753ea2a1c5e4 (diff) | |
| download | stasis-1a8a5994f6d90c0940eb6f8a5b30eac3952bf9af.tar.gz | |
Free result when shell_output fails
| -rw-r--r-- | src/lib/core/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/core/utils.c b/src/lib/core/utils.c index 4313f2d..31208ad 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; } |
