summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte2011-07-16 12:21:55 +0200
committerHarald Welte2011-07-16 12:21:55 +0200
commit584427cd04fe03aafdf31c4c295ace306a8ea03d (patch)
tree8cc60de9283cbb52b22670e4d4ed7062908a0449 /src
parentgsm 08.08: use ANSI function definition with (void) (diff)
downloadlibosmocore-584427cd04fe03aafdf31c4c295ace306a8ea03d.tar.gz
libosmocore-584427cd04fe03aafdf31c4c295ace306a8ea03d.tar.xz
libosmocore-584427cd04fe03aafdf31c4c295ace306a8ea03d.zip
lapdm: fix memory leak due to unreachable code
detected by Smatch
Diffstat (limited to 'src')
-rw-r--r--src/gsm/lapdm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c
index e496461..470a5b2 100644
--- 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;
}