summaryrefslogtreecommitdiffstats
path: root/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar glerch <guido.lerch@gmail.com>2015-09-10 19:51:05 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-09-10 12:33:49 -0700
commitdc02a7aa6db3ff4211bce42f48fcdc3722594322 (patch)
tree7e70d5389ff001e3b3bd904118ddb6e6b4065c04 /uemis-downloader.c
parent6504d97ca81d1e2b763ab1d7d41b13448c48c754 (diff)
downloadsubsurface-dc02a7aa6db3ff4211bce42f48fcdc3722594322.tar.gz
Uemis downloader: remove memory leaks
Found more memory leaks Signed-off-by: glerch <guido.lerch@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'uemis-downloader.c')
-rw-r--r--uemis-downloader.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/uemis-downloader.c b/uemis-downloader.c
index 1472d428a..916e4ff0a 100644
--- a/uemis-downloader.c
+++ b/uemis-downloader.c
@@ -1030,7 +1030,7 @@ static bool load_uemis_divespot(const char *mountpath, int divespot_id)
bool success = uemis_get_answer(mountpath, "getDivespot", 3, 0, NULL);
if (mbuf && success) {
#if UEMIS_DEBUG & 2
- do_dump_buffer_to_file(mbuf, strdup("Spot"), round);
+ do_dump_buffer_to_file(mbuf, "Spot", round);
#endif
return parse_divespot(mbuf);
}
@@ -1096,7 +1096,6 @@ const char *do_uemis_import(device_data_t *data)
else
newmax = strdup("0");
- // newmax = strdup("240");
first = start = atoi(newmax);
#if UEMIS_DEBUG & 2
@@ -1119,7 +1118,7 @@ const char *do_uemis_import(device_data_t *data)
uemis_mem_status = get_memory(data->download_table);
if (success && mbuf && uemis_mem_status != UEMIS_MEM_FULL) {
#if UEMIS_DEBUG % 2
- do_dump_buffer_to_file(mbuf, strdup("Divelogs"), round);
+ do_dump_buffer_to_file(mbuf, "Divelogs", round);
#endif
/* process the buffer we have assembled */
@@ -1165,7 +1164,7 @@ const char *do_uemis_import(device_data_t *data)
param_buff[2] = dive_to_read_buf;
success = uemis_get_answer(mountpath, "getDive", 3, 0, &result);
#if UEMIS_DEBUG % 2
- do_dump_buffer_to_file(mbuf, strdup("Dive"), round);
+ do_dump_buffer_to_file(mbuf, "Dive", round);
#endif
uemis_mem_status = get_memory(data->download_table);
if (uemis_mem_status == UEMIS_MEM_OK || uemis_mem_status == UEMIS_MEM_CRITICAL) {