From ee68bd7f67d4dafea23a98176ded9fbc4c132874 Mon Sep 17 00:00:00 2001 From: Leonid Boytsov Date: Sun, 8 Jul 2018 16:42:38 -0400 Subject: [PATCH] An additional fix for #327 --- python_bindings/nmslib.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python_bindings/nmslib.cc b/python_bindings/nmslib.cc index 3a4279c..3f95536 100644 --- a/python_bindings/nmslib.cc +++ b/python_bindings/nmslib.cc @@ -348,7 +348,9 @@ struct IndexWrapper { } ~IndexWrapper() { - LOG(LIB_DEBUG) << "Destroying Index"; + // In cases when the interpreter was shutting down, attempting to log in python + // could throw an exception (https://github.com/nmslib/nmslib/issues/327). + //LOG(LIB_DEBUG) << "Destroying Index"; freeObjectVector(&data); }