aboutsummaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-09-10 07:19:06 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-09 21:35:20 -0700
commit404cfec7dc2b772f95cbb802e0c6f39bf499110a (patch)
tree7229412de3e1ba071f3e0cc638a0772263827fe9 /uemis-downloader.c
parentdbbf23ed51cdd219427a62aec2462ec038cc59cc (diff)
downloadsubsurface-404cfec7dc2b772f95cbb802e0c6f39bf499110a.tar.gz
Fix another memory leak on uemis downloader
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index 9b45d0ee4..8500708ed 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -1177,7 +1177,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. */