aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-server
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-18 02:16:46 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-18 02:16:46 +0200
commit4da6d3a987f5e803755f3004e51ca7131b94a61e (patch)
treea403f305f70e4b4dd2675387a36e843419508ecd /src/mds-server
parentm whitespace (diff)
downloadmds-4da6d3a987f5e803755f3004e51ca7131b94a61e.tar.gz
mds-4da6d3a987f5e803755f3004e51ca7131b94a61e.tar.bz2
mds-4da6d3a987f5e803755f3004e51ca7131b94a61e.tar.xz
fix memleak on failure
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-server')
-rw-r--r--src/mds-server/mds-server.c1
1 files changed, 1 insertions, 0 deletions
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;