diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-14 22:37:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-14 22:37:30 +0100 |
commit | 100a76ee327132db201beda0fa432af79a3ff9fd (patch) | |
tree | 72000ff99e61a24ced7862abc514b259a2cf61d5 /strv.c | |
parent | 79ef004b0c39e151c8a875f2415a0123808c2a07 (diff) |
strv: fix three minor OOM-triggered memory leaks
Diffstat (limited to 'strv.c')
-rw-r--r-- | strv.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -163,6 +163,8 @@ fail: for (k--; k >= r; k--) free(*k); + free(r); + return NULL; } @@ -191,6 +193,8 @@ fail: for (k--; k >= r; k--) free(*k); + free(r); + return NULL; } @@ -305,6 +309,8 @@ fail: for (k--; k >= r; k--) free(*k); + free(r); + return NULL; } |