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
@ -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…
x
Reference in New Issue
Block a user