From d50e05315f165bda8faee3bff025cea94f601cd8 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Wed, 6 Dec 2017 18:25:22 -0800 Subject: [PATCH] The #ifdef PYTHON_API crap was preventing the write context to be deinitialized - meaning files not being closed, semaphores not deleted... --- src/lib_ccx/output.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib_ccx/output.c b/src/lib_ccx/output.c index ad2aa193..bd580078 100644 --- a/src/lib_ccx/output.c +++ b/src/lib_ccx/output.c @@ -11,12 +11,14 @@ void dinit_write(struct ccx_s_write *wb) { #ifdef ENABLE_PYTHON if(!signal_python_api){ +#endif if (wb->fh > 0) close(wb->fh); freep(&wb->filename); if (wb->with_semaphore && wb->semaphore_filename) unlink(wb->semaphore_filename); freep(&wb->semaphore_filename); +#ifdef ENABLE_PYTHON } #endif }