Remove memory leak for char ** out typemap example, as per Peter Allen email on swig-user on, ahem, 19 July 2006
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11527 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
451f71d7b1
commit
8615adfb07
1 changed files with 1 additions and 1 deletions
|
|
@ -2173,7 +2173,7 @@ reference to be used as a char ** datatype.
|
|||
};
|
||||
myav = av_make(len,svs);
|
||||
free(svs);
|
||||
$result = newRV((SV*)myav);
|
||||
$result = newRV_noinc((SV*)myav);
|
||||
sv_2mortal($result);
|
||||
argvi++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue