From dc32d447c34df55064904aa414f8c82e795e3870 Mon Sep 17 00:00:00 2001 From: Claudiu Olteanu Date: Mon, 23 Mar 2015 20:19:39 +0200 Subject: [PATCH] Fix a memory leak in parser-xml Free the temporary memory alocated for a cobalt location. Signed-off-by: Claudiu Olteanu Signed-off-by: Dirk Hohndel --- parse-xml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/parse-xml.c b/parse-xml.c index a42f8c854..0abcfcb0c 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -2637,6 +2637,7 @@ extern int cobalt_location(void *handle, int columns, char **data, char **column free(location); location = NULL; cur_dive->dive_site_uuid = create_dive_site(tmp); + free(tmp); } else { location = strdup(data[0]); }