Fix memory leak
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13908 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
032f477d7f
commit
d14a88a6bd
1 changed files with 2 additions and 0 deletions
|
|
@ -868,6 +868,8 @@ public:
|
|||
emit_action_code(n, setf->code, tm);
|
||||
} else {
|
||||
Swig_warning(WARN_TYPEMAP_VARIN_UNDEF, input_file, line_number, "Unable to set variable of type %s.\n", SwigType_str(t, 0));
|
||||
DelWrapper(setf);
|
||||
DelWrapper(getf);
|
||||
return SWIG_NOWRAP;
|
||||
}
|
||||
Printf(setf->code, "fail:\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue