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:
61a4451
)
[l1ctl] Adding missing msgb_free()
author
Andreas.Eversberg
<jolly@eversberg.eu>
Thu, 27 Jan 2011 16:33:04 +0000
(16:33 +0000)
committer
Andreas.Eversberg
<jolly@eversberg.eu>
Thu, 27 Jan 2011 16:33:04 +0000
(16:33 +0000)
When a corrupt frame cannot be delivered, it is dropped. Also it must be freed.
src/host/layer23/src/common/l1ctl.c
patch
|
blob
|
history
diff --git
a/src/host/layer23/src/common/l1ctl.c
b/src/host/layer23/src/common/l1ctl.c
index
ac8bac8
..
d47275a
100644
(file)
--- a/
src/host/layer23/src/common/l1ctl.c
+++ b/
src/host/layer23/src/common/l1ctl.c
@@
-208,6
+208,7
@@
static int rx_ph_data_ind(struct osmocom_ms *ms, struct msgb *msg)
printf("Dropping frame with %u bit errors\n", dl->num_biterr);
LOGP(DL1C, LOGL_NOTICE, "Dropping frame with %u bit errors\n",
dl->num_biterr);
+ msgb_free(msg);
return 0;
}