aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs_rlcmac.cpp
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-16 21:51:37 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-17 11:36:11 +0200
commitdcc9c39529556ca20cb8bd98758ea8caa023f259 (patch)
treeb818e4c48559745ffd6ee65ff146798382d3ed44 /src/gprs_rlcmac.cpp
parent70862c94098d5f53ceb5dff224c1e063a07291fa (diff)
sba: Fix memory leak when all PDCHs are disabled
Diffstat (limited to 'src/gprs_rlcmac.cpp')
-rw-r--r--src/gprs_rlcmac.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gprs_rlcmac.cpp b/src/gprs_rlcmac.cpp
index c6a91d88..6546f8a4 100644
--- a/src/gprs_rlcmac.cpp
+++ b/src/gprs_rlcmac.cpp
@@ -1071,6 +1071,7 @@ int sba_alloc(uint8_t *_trx, uint8_t *_ts, uint32_t *_fn, uint8_t ta)
}
if (trx == 8) {
LOGP(DRLCMAC, LOGL_NOTICE, "No PDCH available.\n");
+ talloc_free(sba);
return -EINVAL;
}