From a647328d5783f528d2456977888b32ddd59b619f Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Wed, 7 Mar 2018 14:15:35 +0000 Subject: [PATCH] Fix unimplemented free_participant() Probably didn't need valgrind to see *that* one was a leak... --- chime-call.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/chime-call.c b/chime-call.c index c86dd8b..f01afbc 100644 --- a/chime-call.c +++ b/chime-call.c @@ -288,8 +288,15 @@ static gboolean parse_call_participation_status(JsonNode *node, const gchar *mem return TRUE; } -static void free_participant(void *p) +static void free_participant(void *_p) { + ChimeCallParticipant *p = _p; + + free(p->participant_id); + free(p->participant_type); + free(p->full_name); + free(p->email); + free(p); } static gboolean parse_participant(ChimeConnection *cxn, ChimeCall *call, JsonNode *p) -- 2.51.0