Use malloc() not emalloc() when free() gets used
This commit is contained in:
parent
3f9723b896
commit
2920ba1cf6
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@
|
|||
#ifdef __cplusplus
|
||||
$&1_ltype resultobj = new $1_ltype((const $1_ltype &) $1);
|
||||
#else
|
||||
$&1_ltype resultobj = ($&1_ltype) emalloc(sizeof($1_type));
|
||||
$&1_ltype resultobj = ($&1_ltype) malloc(sizeof($1_type));
|
||||
memcpy(resultobj, &$1, sizeof($1_type));
|
||||
#endif
|
||||
SWIG_SetPointerZval($result, (void *)resultobj, $&1_descriptor, 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue