From 4da6d3a987f5e803755f3004e51ca7131b94a61e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 18 May 2014 02:16:46 +0200 Subject: fix memleak on failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server/mds-server.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mds-server/mds-server.c b/src/mds-server/mds-server.c index 99184ee..5b81222 100644 --- a/src/mds-server/mds-server.c +++ b/src/mds-server/mds-server.c @@ -1103,6 +1103,7 @@ void add_intercept_condition(client_t* client, char* condition, int64_t priority if (conds == NULL) { perror(*argv); + free(condition); return; } client->interception_conditions = conds; -- cgit v1.2.3-70-g09d2