aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/abis.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-29 18:55:03 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-29 18:55:03 +0200
commitae5dfdc416c03221b0b747883fd9c1fd54db281e (patch)
treef2babd4949a8b4c4d38b68d607edb49d8982b3a8 /src/common/abis.c
parent5a7877457b2b5c60c52f2bea7424b3c15f04ab69 (diff)
Fix memory leak in abis code: Free msgb after tx'ing it
Diffstat (limited to 'src/common/abis.c')
-rw-r--r--src/common/abis.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/abis.c b/src/common/abis.c
index c60f5443..79a9d4d0 100644
--- a/src/common/abis.c
+++ b/src/common/abis.c
@@ -404,6 +404,7 @@ static int abis_sock_cb(struct osmo_fd *bfd, unsigned int what)
if (msg) {
LOGP(DABIS, LOGL_DEBUG, "Sending messages to Abis socket.\n");
ret = send(link->bfd.fd, msg->data, msg->len, 0);
+ msgb_free(msg);
if (ret < 0)
goto close;
} else