* [PATCH] sdptool: Fix mem leak in do_search
@ 2013-03-26 11:31 Arek Lichwa
2013-03-28 11:08 ` Johan Hedberg
0 siblings, 1 reply; 2+ messages in thread
From: Arek Lichwa @ 2013-03-26 11:31 UTC (permalink / raw)
To: linux-bluetooth; +Cc: Arkadiusz Lichwa
From: Arkadiusz Lichwa <arkadiusz.lichwa@tieto.com>
---
tools/sdptool.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/sdptool.c b/tools/sdptool.c
index 0a949f2..eb09f65 100644
--- a/tools/sdptool.c
+++ b/tools/sdptool.c
@@ -3781,6 +3781,8 @@ static int do_search(bdaddr_t *bdaddr, struct search_context *context)
search = sdp_list_append(0, &context->group);
if (sdp_service_search_attr_req(sess, search, SDP_ATTR_REQ_RANGE, attrid, &seq)) {
printf("Service Search failed: %s\n", strerror(errno));
+ sdp_list_free(attrid, 0);
+ sdp_list_free(search, 0);
sdp_close(sess);
return -1;
}
--
1.7.12
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-28 11:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-26 11:31 [PATCH] sdptool: Fix mem leak in do_search Arek Lichwa
2013-03-28 11:08 ` Johan Hedberg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.