From a6a18b1c0524395879129bd6c20e15dd457cc955 Mon Sep 17 00:00:00 2001 From: vincentcasseau Date: Tue, 22 Oct 2024 10:41:06 +0200 Subject: [PATCH] Connector: fix mem leak in getInterpolatedPointsZ --- Cassiopee/Connector/Connector/getInterpolatedPoints.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Cassiopee/Connector/Connector/getInterpolatedPoints.cpp b/Cassiopee/Connector/Connector/getInterpolatedPoints.cpp index fd66742ce..08c878153 100755 --- a/Cassiopee/Connector/Connector/getInterpolatedPoints.cpp +++ b/Cassiopee/Connector/Connector/getInterpolatedPoints.cpp @@ -1750,6 +1750,7 @@ PyObject* K_CONNECTOR::getInterpolatedPointsZ(PyObject* self, PyObject* args) if (size == 0) { RELEASESHAREDZ(hook, varString, eltType); + delete [] sizeLoc; Py_INCREF(Py_None); return Py_None; }