swig -go: free correct variable in char *& typemap
This commit is contained in:
parent
f137840aa9
commit
a4c82052ce
1 changed files with 1 additions and 1 deletions
|
|
@ -457,7 +457,7 @@
|
|||
%{ free($1); %}
|
||||
|
||||
%typemap(freearg) char *&
|
||||
%{ free(*$1); %}
|
||||
%{ free(temp$argnum); %}
|
||||
|
||||
%typemap(out,fragment="AllocateString")
|
||||
char *, char *&, char[ANY], char[]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue