mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 21:13:23 +00:00
ostctools - resource leaks
some resources are not being freed. Signed-off-by: Marcos CARDINOT <mcardinot@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
6f7e3d04cb
commit
59f283a4fc
1 changed files with 3 additions and 0 deletions
|
@ -78,6 +78,9 @@ void ostctools_import(const char *file, struct dive_table *divetable)
|
|||
// Open the archive
|
||||
if ((archive = subsurface_fopen(file, "rb")) == NULL) {
|
||||
report_error(translate("gettextFromC", "Error: couldn't open the file"));
|
||||
free(devdata);
|
||||
free(buffer);
|
||||
free(ostcdive);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue