projects
/
osmocom-bb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4d45ab
)
lapdm: fix memory leak due to unreachable code
author
Harald Welte
<laforge@gnumonks.org>
Sat, 16 Jul 2011 10:21:55 +0000
(12:21 +0200)
committer
Harald Welte
<laforge@gnumonks.org>
Sat, 16 Jul 2011 10:21:55 +0000
(12:21 +0200)
detected by Smatch
src/gsm/lapdm.c
patch
|
blob
|
history
diff --git
a/src/gsm/lapdm.c
b/src/gsm/lapdm.c
index
e496461
..
470a5b2
100644
(file)
--- a/
src/gsm/lapdm.c
+++ b/
src/gsm/lapdm.c
@@
-1635,7
+1635,6
@@
static int l2_ph_data_ind(struct msgb *msg, struct lapdm_entity *le, uint8_t cha
if (!mctx.dl) {
LOGP(DLLAPDM, LOGL_NOTICE, "Received frame for unsupported "
"SAPI %d!\n", sapi);
- return -EINVAL;
msgb_free(msg);
return -EIO;
}