From 100a76ee327132db201beda0fa432af79a3ff9fd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 14 Feb 2010 22:37:30 +0100 Subject: strv: fix three minor OOM-triggered memory leaks --- strv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/strv.c b/strv.c index c4880c49ca..25ea92c112 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; } -- cgit v1.2.3-54-g00ecf