summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-01-17 18:47:47 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2018-01-17 18:47:47 +0100
commit67829d86c4c2d173807b532e97c09402415341c5 (patch)
tree5a5602b5cafdaa986c33017b03131aeaac9798ba
parentdd9ccaf01650d77e6ea7e90f6ca588711e554d3f (diff)
event: fix memory leak
thanks to José Luis Millán who fixed it in his PR: https://github.com/alfredh/baresip/pull/346
-rw-r--r--src/event.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c
index a489fa1..4d1304b 100644
--- a/src/event.c
+++ b/src/event.c
@@ -79,6 +79,8 @@ static int add_rtcp_stats(struct odict *od_parent, const struct rtcp_stats *rs)
out:
mem_deref(od);
+ mem_deref(tx);
+ mem_deref(rx);
return err;
}