diff options
author | Amarnath Valluri <amarnath.valluri@intel.com> | 2016-06-16 15:45:02 +0300 |
---|---|---|
committer | Amarnath Valluri <amarnath.valluri@intel.com> | 2016-06-16 15:47:12 +0300 |
commit | 11b971f405cf4f1a1bb51bb3ff115ca76707c3eb (patch) | |
tree | 8c2b37c961b1456f1521af9bca6aa2b6405d46dc | |
parent | 84b06fa21b61c96eb7da49d73edb66e17de10821 (diff) | |
download | swig-11b971f405cf4f1a1bb51bb3ff115ca76707c3eb.tar.gz |
go.cxx: Fix use of a freed variable
Signed-off-by: Amarnath Valluri <amarnath.valluri@intel.com>
-rw-r--r-- | Source/Modules/go.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Modules/go.cxx b/Source/Modules/go.cxx index 6013fa15b..7fa9b2670 100644 --- a/Source/Modules/go.cxx +++ b/Source/Modules/go.cxx @@ -4176,7 +4176,6 @@ private: Wrapper *dummy = NewWrapper(); emit_attach_parmmaps(parms, dummy); - DelWrapper(dummy); Swig_typemap_attach_parms("gotype", parms, NULL); Swig_typemap_attach_parms("imtype", parms, NULL); @@ -4233,6 +4232,8 @@ private: Swig_typemap_attach_parms("goin", parms, dummy); Swig_typemap_attach_parms("goargout", parms, dummy); + DelWrapper(dummy); + if (!is_ignored) { // We use an interface to see if this method is defined in Go. Printv(f_go_wrappers, "type ", interface_name, " interface {\n", NULL); |