summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Claudiu Olteanu <olteanu.claudiu@ymail.com>2015-03-23 20:19:39 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-24 09:46:56 -0700
commitdc32d447c34df55064904aa414f8c82e795e3870 (patch)
tree0b2b023f2d10166d24e14eca1f2e1f982f6e259d /parse-xml.c
parentc46bbf3b5ec50379eee3afb874089b7660da937c (diff)
downloadsubsurface-dc32d447c34df55064904aa414f8c82e795e3870.tar.gz
Fix a memory leak in parser-xml
Free the temporary memory alocated for a cobalt location. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c1
1 files changed, 1 insertions, 0 deletions
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]);
}