mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Clean req.txt file path
This patch cleans the path allocated for req.txt file path. Signed-off-by: Claudiu Olteanu <olteanu.claudiu@ymail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d7f4ea66c2
commit
c46bbf3b5e
1 changed files with 4 additions and 1 deletions
|
@ -861,8 +861,10 @@ const char *do_uemis_import(device_data_t *data)
|
|||
if (dive_table.nr == 0)
|
||||
keep_number = true;
|
||||
uemis_info(translate("gettextFromC", "Initialise communication"));
|
||||
if (!uemis_init(mountpath))
|
||||
if (!uemis_init(mountpath)) {
|
||||
free(reqtxt_path);
|
||||
return translate("gettextFromC", "Uemis init failed");
|
||||
}
|
||||
if (!uemis_get_answer(mountpath, "getDeviceId", 0, 1, &result))
|
||||
goto bail;
|
||||
deviceid = strdup(param_buff[0]);
|
||||
|
@ -994,5 +996,6 @@ bail:
|
|||
result = param_buff[2];
|
||||
}
|
||||
free(deviceid);
|
||||
free(reqtxt_path);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue