summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-10-17 01:49:08 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2017-10-17 02:03:01 +0200
commit68f87915e41a47cec4d1bd46e44eda2196a265df (patch)
tree43b8f5f652194220188db6404c7e38786d208b4b /src
parente86437cae41717aa27bf14a41f08d9e374b95433 (diff)
fix mem leak in handle_cmd_ps(): free luop
Each GSUP client creates a luop, but since lu_op_tx_del_subscr_data() doesn't free the luop, each allocated luop leaks memory. Change-Id: If912dc992bc7f18c49d22ec0436d9679c1cd04f6
Diffstat (limited to 'src')
-rw-r--r--src/ctrl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ctrl.c b/src/ctrl.c
index 8682e14..74172c4 100644
--- a/src/ctrl.c
+++ b/src/ctrl.c
@@ -54,6 +54,7 @@ static int handle_cmd_ps(struct hlr *ctx, struct ctrl_cmd *cmd, bool enable)
luop = lu_op_alloc_conn(co);
lu_op_fill_subscr(luop, ctx->dbc, cmd->value);
lu_op_tx_del_subscr_data(luop);
+ lu_op_free(luop);
}
}