summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2009-02-24 19:48:27 +0200
committerJohan Hedberg <johan.hedberg@nokia.com>2009-02-24 19:48:27 +0200
commitcd7016b5320ae4274dbbbc829b5fe7f7ae1d568a (patch)
tree0d8d1175119a828758e3f69ddb4a0dc0bd517823
parent006592002415323e97f3e093f1456fa7d856d821 (diff)
Fix memory leak
-rw-r--r--src/sdpd-server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sdpd-server.c b/src/sdpd-server.c
index 6cc09590..02ab8774 100644
--- a/src/sdpd-server.c
+++ b/src/sdpd-server.c
@@ -175,6 +175,7 @@ static gboolean io_session_event(GIOChannel *chan, GIOCondition cond, gpointer d
len = recv(sk, buf, size, 0);
if (len <= 0) {
sdp_svcdb_collect_all(sk);
+ free(buf);
return FALSE;
}