swig -go: free correct variable in char *& typemap

This commit is contained in:
Ian Lance Taylor 2022-03-06 21:58:13 -08:00
commit a4c82052ce

View file

@ -457,7 +457,7 @@
%{ free($1); %}
%typemap(freearg) char *&
%{ free(*$1); %}
%{ free(temp$argnum); %}
%typemap(out,fragment="AllocateString")
char *, char *&, char[ANY], char[]