path: root/openbsc
diff options
authorHarald Welte <laforge@gnumonks.org>2009-06-26 19:40:48 +0200
committerHarald Welte <laforge@gnumonks.org>2009-06-26 19:40:48 +0200
commit316c825fcd477b81b1ba9185d1edfc730b165377 (patch)
tree8dcfb661dfa434170f539137628ac3dcff09cba8 /openbsc
parent966636f39f17e5d42e7918a2055d400c791671b4 (diff)
fix MNCC memory leak
after passing the mncc structure (contained in msgb) to the mncc layer, we have to release its memory. This leak was discovered as a direct result of using talloc.
Diffstat (limited to 'openbsc')
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c
index 56db6543..c77268e2 100644
--- a/openbsc/src/gsm_04_08.c
+++ b/openbsc/src/gsm_04_08.c
@@ -3809,6 +3809,7 @@ int bsc_upqueue(struct gsm_network *net)
if (net->mncc_recv)
net->mncc_recv(net, mncc->msg_type, mncc);
work = 1; /* work done */
+ talloc_free(msg);
return work;