[CRIU] [PATCH 5/5] util: Don't xfree pointer on xmalloc-ed pointer
Pavel Emelyanov
xemul at parallels.com
Tue Aug 5 01:59:12 PDT 2014
... free the pointer itself :)
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util.c b/util.c
index 288f1db..a180ea5 100644
--- a/util.c
+++ b/util.c
@@ -793,7 +793,7 @@ void split(char *str, char token, char ***out, int *n)
int j;
for (j = 0; j < i; j++)
xfree((*out)[j]);
- xfree(out);
+ xfree(*out);
*out = NULL;
*n = -1;
return;
--
1.8.4.2
More information about the CRIU
mailing list