diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-06-26 19:40:48 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-06-26 19:40:48 +0200 |
commit | 316c825fcd477b81b1ba9185d1edfc730b165377 (patch) | |
tree | 8dcfb661dfa434170f539137628ac3dcff09cba8 /openbsc/src | |
parent | 966636f39f17e5d42e7918a2055d400c791671b4 (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/src')
-rw-r--r-- | openbsc/src/gsm_04_08.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index 56db65439..c77268e26 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; |