[PATCH 4/6] Fix memory leak on uemis downloader
Miika Turkia
miika.turkia at gmail.com
Wed Sep 9 21:19:05 PDT 2015
Signed-off-by: Miika Turkia <miika.turkia at gmail.com>
---
uemis-downloader.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/uemis-downloader.c b/uemis-downloader.c
index 0cb0f9f..d17f67d 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -960,7 +960,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;
--
2.1.4
More information about the subsurface
mailing list