summaryrefslogtreecommitdiff
path: root/tnet_io/cwrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tnet_io/cwrapper.cpp')
-rw-r--r--tnet_io/cwrapper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tnet_io/cwrapper.cpp b/tnet_io/cwrapper.cpp
index f992731..df4bdef 100644
--- a/tnet_io/cwrapper.cpp
+++ b/tnet_io/cwrapper.cpp
@@ -91,7 +91,7 @@ extern "C" {
if (repo->cvn_mask)
free(repo->cvn_path);
free(repo->p_deriv_win_lenghts);
- free(repo);
+ delete repo;
}
struct TNetLabelRepo {
@@ -131,6 +131,6 @@ extern "C" {
}
void tnet_label_repo_destroy(TNetLabelRepo *repo) {
- free(repo);
+ delete repo;
}
}