summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-16 17:25:25 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-08-16 17:25:25 +0000
commit09e64106ebaa80ad5e275bb287809d3ecc33a554 (patch)
treebe53407f2f23e2d9fc36137679f9ecfc03ce6341 /serial
parent9ce01693dd0aa7407b7d8eb37c8524dd05abe15c (diff)
serial: proxy service record - fixed memory leak
Diffstat (limited to 'serial')
-rw-r--r--serial/manager.c10
1 files changed, 6 insertions, 4 deletions
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;