mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
c46bbf3b5e
commit
dc32d447c3
1 changed files with 1 additions and 0 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue