Fix memory leak in the exception example
Delete the object we allocate.
This commit is contained in:
parent
dfac9ce325
commit
55f7d51979
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ int main() {
|
|||
}
|
||||
}
|
||||
|
||||
Test_delete(t);
|
||||
|
||||
SWIG_exit(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue