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>
This commit is contained in:
Claudiu Olteanu 2015-03-23 20:19:39 +02:00 committed by Dirk Hohndel
parent c46bbf3b5e
commit dc32d447c3

View file

@ -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]);
}