summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorStephen Crane <steve.crane@rococosoft.com>2005-02-28 11:58:54 +0000
committerStephen Crane <steve.crane@rococosoft.com>2005-02-28 11:58:54 +0000
commitd05333281217cd6623de9cc27b90448d7fd5d81a (patch)
tree5ddbb4491451d6a29d3e21db11969da4c9f2b923 /tools
parentfa8b3a2161c997be308438040641dc0445f9d494 (diff)
free protocol descriptor list properly
Diffstat (limited to 'tools')
-rw-r--r--tools/sdptool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/sdptool.c b/tools/sdptool.c
index cfbe2bba..a3c3c551 100644
--- a/tools/sdptool.c
+++ b/tools/sdptool.c
@@ -892,7 +892,8 @@ static void print_service_attr(sdp_record_t *rec)
if (sdp_get_access_protos(rec, &proto) == 0) {
printf("Protocol Descriptor List:\n");
sdp_list_foreach(proto, print_access_protos, 0);
- sdp_list_free(proto, (sdp_free_func_t)sdp_data_free);
+ sdp_list_foreach(proto, (sdp_list_func_t)sdp_list_free, 0);
+ sdp_list_free(proto, 0);
}
if (sdp_get_lang_attr(rec, &list) == 0) {
printf("Language Base Attr List:\n");