aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-server/interceptors.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-19 01:33:01 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-19 01:33:01 +0200
commite1dd8fec064c0b66acf6fd676f4692202f79f13c (patch)
tree2af3adaad5c92aefddcc046cd25a9638130996d1 /src/mds-server/interceptors.c
parenttypo (diff)
downloadmds-e1dd8fec064c0b66acf6fd676f4692202f79f13c.tar.gz
mds-e1dd8fec064c0b66acf6fd676f4692202f79f13c.tar.bz2
mds-e1dd8fec064c0b66acf6fd676f4692202f79f13c.tar.xz
Fix memory leak
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-server/interceptors.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mds-server/interceptors.c b/src/mds-server/interceptors.c
index 9d602c7..0c22d78 100644
--- a/src/mds-server/interceptors.c
+++ b/src/mds-server/interceptors.c
@@ -44,6 +44,7 @@ static void remove_intercept_condition(client_t* client, size_t index)
size_t n = client->interception_conditions_count;
/* Remove the condition from the list. */
+ free(conds[index].condition);
memmove(conds + index, conds + index + 1, --n - index);
client->interception_conditions_count--;