summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dc11a6e)
raw | patch | inline | side by side (parent: dc11a6e)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:32:36 +0000 (10:32 +0200) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sat, 23 Apr 2016 08:32:36 +0000 (10:32 +0200) |
[src/zone.c:124]: (error) Memory leak: ret
src/zone.c | patch | blob | history |
diff --git a/src/zone.c b/src/zone.c
index 52dc55395bbd4edfc9d9eca1ad7ab636ffec15b7..0e9fee386f8c47749da5d320f407dfce4a56a545 100644 (file)
--- a/src/zone.c
+++ b/src/zone.c
}
if (!(key = malloc(sizeof(*key)))) {
WARNING("zone plugin: no memory");
+ free(ret);
return(NULL);
}
*key = zoneid;