mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: avoid memory leak
Coverity CID 208337 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0e94c21a55
commit
da1d6e97f6
1 changed files with 1 additions and 0 deletions
|
@ -804,6 +804,7 @@ static int dive_cb(const unsigned char *data, unsigned int size,
|
|||
if (!devdata->force_download && find_dive(&dive->dc)) {
|
||||
const char *date_string = get_dive_date_c_string(dive->when);
|
||||
dev_info(devdata, translate("gettextFromC", "Already downloaded dive at %s"), date_string);
|
||||
free((void *)date_string);
|
||||
goto error_exit;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue