diff options
author | Pablo Neira Ayuso <pablo@gnumonks.org> | 2012-08-23 23:34:05 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2012-08-30 21:50:32 +0200 |
commit | 7251604cce2643fa74c73c1fa0371851a36ef46b (patch) | |
tree | 2b04082684ac9aef02646e4078059d6f0f3a3191 /tests | |
parent | 1fd93bbc6edbf1c297d71739242e8f35aa499787 (diff) |
tests: e1inp_ipa_*_test: fix leak of msgb in ->sign_link path
Fix a leak in the tests: The ->sign_link callback is reponsible
for releasing the msgb.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/e1inp_ipa_bsc_test.c | 1 | ||||
-rw-r--r-- | tests/e1inp_ipa_bts_test.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/e1inp_ipa_bsc_test.c b/tests/e1inp_ipa_bsc_test.c index b447893..b2fb11c 100644 --- a/tests/e1inp_ipa_bsc_test.c +++ b/tests/e1inp_ipa_bsc_test.c @@ -191,6 +191,7 @@ static int sign_link(struct msgb *msg) LOGP(DBSCTEST, LOGL_ERROR, "Unknown signallin message.\n"); break; } + msgb_free(msg); return ret; } diff --git a/tests/e1inp_ipa_bts_test.c b/tests/e1inp_ipa_bts_test.c index f885c5c..31aac95 100644 --- a/tests/e1inp_ipa_bts_test.c +++ b/tests/e1inp_ipa_bts_test.c @@ -151,6 +151,7 @@ static int sign_link(struct msgb *msg) LOGP(DBTSTEST, LOGL_ERROR, "Unknown signalling message.\n"); break; } + msgb_free(msg); return ret; } |