From 3710e462f85824cd9d84b3f95e6b2ea694119ff9 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 29 May 2011 19:48:15 +0200 Subject: gsmtap_util: Remove msg_free from the wq call back write_queue already frees the message after the callback is called. Signed-off-by: Sylvain Munaut --- src/gsmtap_util.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/gsmtap_util.c') 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; } -- cgit v1.2.3