From 084626e60b43596ed612f6ea340392a802c1cf3b Mon Sep 17 00:00:00 2001 From: Richard Berger <richard.berger@temple.edu> Date: Mon, 22 May 2017 17:36:16 -0400 Subject: [PATCH] Fixes coverity issue CID 179426 --- src/PYTHON/python_impl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PYTHON/python_impl.cpp b/src/PYTHON/python_impl.cpp index 25536e55d5..daa4952665 100644 --- a/src/PYTHON/python_impl.cpp +++ b/src/PYTHON/python_impl.cpp @@ -313,6 +313,9 @@ void PythonImpl::invoke_function(int ifunc, char *result) } } else if (itype == PTR) { pValue = PY_VOID_POINTER(lmp); + } else { + PyGILState_Release(gstate); + error->all(FLERR,"Unsupported variable type"); } PyTuple_SetItem(pArgs,i,pValue); } -- GitLab