diff options
Diffstat (limited to 'src/posix/environment_posix.c')
-rw-r--r-- | src/posix/environment_posix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/posix/environment_posix.c b/src/posix/environment_posix.c index 32a1c8d..8447753 100644 --- a/src/posix/environment_posix.c +++ b/src/posix/environment_posix.c @@ -100,6 +100,7 @@ zix_expand_environment_strings(ZixAllocator* const allocator, !(ref = set_ref(allocator, &ref, t, string + s)) || !(out = append_var(allocator, &len, out, t, ref))) { zix_free(allocator, ref); + zix_free(allocator, out); return NULL; } start = s = t; |