summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/src
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-05-29 19:49:53 +0200
committerSylvain Munaut <tnt@246tNt.com>2011-05-29 19:49:53 +0200
commit36c2f7f420fb2fc616d1255f44c3061c1a7bcaf2 (patch)
tree30bc53398df323273c9c89afccbc8e788881dbb4 /src/shared/libosmocore/src
parent41d84e08bbdf767e1f77740fe4605a00ee8c3f48 (diff)
parent3710e462f85824cd9d84b3f95e6b2ea694119ff9 (diff)
Merge commit '3710e462f85824cd9d84b3f95e6b2ea694119ff9'
Diffstat (limited to 'src/shared/libosmocore/src')
-rw-r--r--src/shared/libosmocore/src/gsmtap_util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/shared/libosmocore/src/gsmtap_util.c b/src/shared/libosmocore/src/gsmtap_util.c
index 3d20bfc2..95458657 100644
--- a/src/shared/libosmocore/src/gsmtap_util.c
+++ b/src/shared/libosmocore/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;
}