From 920352da70245f9b385aa0465f9ee88091676371 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 13 Oct 2012 21:04:01 +0200 Subject: [PATCH] lvmetad: fix leak of append on error path --- libdaemon/client/config-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdaemon/client/config-util.c b/libdaemon/client/config-util.c index 1f4b55b3e..1c8313436 100644 --- a/libdaemon/client/config-util.c +++ b/libdaemon/client/config-util.c @@ -55,7 +55,7 @@ int buffer_append_vf(struct buffer *buf, va_list ap) if (!append || !buffer_append(buf, append)) - return 0; + goto fail; dm_free(append); }