If we have a %typemap(freearg) that frees the argument, we shouldn't
free it manually on an error path before calling SWIG_fail.
SWIG_fail will already free the memory in this case, and doing it
manually results in a double free.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM. I think it would be worth adding that information to the top of the file to prevent similar mistakes in the future.