From: Lennart Poettering Date: Sun, 14 Feb 2010 21:37:30 +0000 (+0100) Subject: strv: fix three minor OOM-triggered memory leaks X-Git-Tag: 0.git+20100605+dfd8ee-1~294 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=100a76ee327132db201beda0fa432af79a3ff9fd;p=systemd strv: fix three minor OOM-triggered memory leaks --- diff --git a/strv.c b/strv.c index c4880c49..25ea92c1 100644 --- a/strv.c +++ b/strv.c @@ -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; }