mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +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
|
// Open the archive
|
||||||
if ((archive = subsurface_fopen(file, "rb")) == NULL) {
|
if ((archive = subsurface_fopen(file, "rb")) == NULL) {
|
||||||
report_error(translate("gettextFromC", "Error: couldn't open the file"));
|
report_error(translate("gettextFromC", "Error: couldn't open the file"));
|
||||||
|
free(devdata);
|
||||||
|
free(buffer);
|
||||||
|
free(ostcdive);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue