scilab: use freeAllocatedSingleString() after getAllocatedSingleTree()
This commit is contained in:
parent
64e5215f29
commit
05cfa06dbb
1 changed files with 1 additions and 2 deletions
|
|
@ -103,8 +103,7 @@ SWIG_SciString_AsCharPtr(void *pvApiCtx, int iVar, char *pcValue, int iLength, c
|
||||||
strncpy(pcValue, pcTmpValue, iLength);
|
strncpy(pcValue, pcTmpValue, iLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(pcTmpValue);
|
freeAllocatedSingleString(pcTmpValue);
|
||||||
|
|
||||||
return SWIG_OK;
|
return SWIG_OK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue