sba: Fix memory leak when all PDCHs are disabled

This commit is contained in:
Holger Hans Peter Freyther 2013-10-16 21:51:37 +02:00
parent 70862c9409
commit dcc9c39529
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}