summaryrefslogtreecommitdiffstats
path: root/common/sdp-glib.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/sdp-glib.c')
-rw-r--r--common/sdp-glib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/sdp-glib.c b/common/sdp-glib.c
index a24464ce..f280d0d1 100644
--- a/common/sdp-glib.c
+++ b/common/sdp-glib.c
@@ -115,8 +115,8 @@ static void element_start(GMarkupParseContext *context,
}
}
- ctx_data->stack_head->data =
- sdp_xml_parse_datatype(element_name, ctx_data->stack_head);
+ ctx_data->stack_head->data = sdp_xml_parse_datatype(element_name,
+ ctx_data->stack_head, ctx_data->record);
if (ctx_data->stack_head->data == NULL)
error("Can't parse element %s", element_name);
@@ -213,7 +213,7 @@ sdp_record_t *sdp_xml_parse_record(const char *data, int size)
record = sdp_record_alloc();
if (!record) {
- sdp_record_free(record);
+ free(ctx_data);
return NULL;
}