scilab: use freeAllocatedSingleString() after getAllocatedSingleTree()

This commit is contained in:
Simon Marchetto 2015-03-24 17:31:17 +01:00
commit 05cfa06dbb

View file

@ -103,8 +103,7 @@ SWIG_SciString_AsCharPtr(void *pvApiCtx, int iVar, char *pcValue, int iLength, c
strncpy(pcValue, pcTmpValue, iLength);
}
free(pcTmpValue);
freeAllocatedSingleString(pcTmpValue);
return SWIG_OK;
}
}