diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-29 18:55:03 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-29 18:55:03 +0200 |
commit | ae5dfdc416c03221b0b747883fd9c1fd54db281e (patch) | |
tree | f2babd4949a8b4c4d38b68d607edb49d8982b3a8 /src | |
parent | 5a7877457b2b5c60c52f2bea7424b3c15f04ab69 (diff) |
Fix memory leak in abis code: Free msgb after tx'ing it
Diffstat (limited to 'src')
-rw-r--r-- | src/common/abis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/abis.c b/src/common/abis.c index c60f544..79a9d4d 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 |