aboutsummaryrefslogtreecommitdiffstats
path: root/src/gsmtap_util.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-06-13 19:15:50 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-06-13 19:15:50 +0200
commit139e12782c5cbbcb31ac89a1c59d8d5b4215ebf5 (patch)
tree512522b15278a9a979beaf70b6882470ce1e7e10 /src/gsmtap_util.c
parent4761ba9d33a61cb654d45c0e9037b30a77e3f94a (diff)
parentee50081daa3a80586f3044056517337a8e8fac9f (diff)
Merge branch 'master' of git.osmocom.org:libosmocore
Diffstat (limited to 'src/gsmtap_util.c')
-rw-r--r--src/gsmtap_util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gsmtap_util.c b/src/gsmtap_util.c
index 3d20bfc2..95458657 100644
--- a/src/gsmtap_util.c
+++ b/src/gsmtap_util.c
@@ -197,16 +197,13 @@ static int gsmtap_wq_w_cb(struct osmo_fd *ofd, struct msgb *msg)
rc = write(ofd->fd, msg->data, msg->len);
if (rc < 0) {
perror("writing msgb to gsmtap fd");
- msgb_free(msg);
return rc;
}
if (rc != msg->len) {
perror("short write to gsmtap fd");
- msgb_free(msg);
return -EIO;
}
- msgb_free(msg);
return 0;
}