From 09e64106ebaa80ad5e275bb287809d3ecc33a554 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Thu, 16 Aug 2007 17:25:25 +0000 Subject: serial: proxy service record - fixed memory leak --- serial/manager.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'serial/manager.c') diff --git a/serial/manager.c b/serial/manager.c index 498e2846..9f3fe8d9 100644 --- a/serial/manager.c +++ b/serial/manager.c @@ -1063,10 +1063,12 @@ static int create_proxy_record(sdp_buf_t *buf, const char *uuid128, uint8_t chan ret = sdp_gen_record_pdu(&record, buf); sdp_data_free(ch); - sdp_list_free(proto[0], 0); - sdp_list_free(proto[1], 0); - sdp_list_free(apseq, 0); - sdp_list_free(aproto, 0); + sdp_list_free(proto[0], NULL); + sdp_list_free(proto[1], NULL); + sdp_list_free(apseq, NULL); + sdp_list_free(aproto, NULL); + sdp_list_free(record.attrlist, (sdp_free_func_t) sdp_data_free); + sdp_list_free(record.pattern, free); return ret; -- cgit