mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Fix memory leak on uemis downloader
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
33c9cc60ef
commit
dbbf23ed51
1 changed files with 1 additions and 1 deletions
|
@ -968,7 +968,7 @@ static bool do_dump_buffer_to_file(char *buf, char *prefix, int round)
|
|||
if (strstr(buf, "date{ts{"))
|
||||
strncpy(date, strstr(buf, "date{ts{"), sizeof(date));
|
||||
else
|
||||
strncpy(date, strdup("date{ts{no-date{"), sizeof(date));
|
||||
strncpy(date, "date{ts{no-date{", sizeof(date));
|
||||
|
||||
if (!strstr(buf, "object_id{int{"))
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue