[PATCH 5/6] Fix another memory leak on uemis downloader
Miika Turkia
miika.turkia at gmail.com
Wed Sep 9 21:19:06 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 d17f67d..d9ddde6 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -1169,7 +1169,7 @@ const char *do_uemis_import(device_data_t *data)
* we mark the search sucessfull even if the dive has been deleted. */
found = true;
process_raw_buffer(data, deviceidnr, mbuf, &newmax, false, NULL);
- if (strstr(mbuf, strdup("deleted{bool{true")) == NULL) {
+ if (strstr(mbuf, "deleted{bool{true") == NULL) {
/* remember the last log file number as it is very likely that subsequent dives
* have the same or higher logfile number.
* UEMIS unfortunately deletes dives by deleting the dive details and not the logs. */
--
2.1.4
More information about the subsurface
mailing list