Skip to content

Commit

Permalink
Merge pull request #445 from jrohel/fix/memleak_in_swig_python_wrapper
Browse files Browse the repository at this point in the history
Fix: Memory leaks in SWIG generated code (for Python)
  • Loading branch information
mlschroe authored Apr 8, 2021
2 parents c773294 + 8615575 commit e2ed3f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bindings/solv.i
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ typedef struct {
$2 = size;
}

%typemap(freearg,noblock=1,match="in") (const unsigned char *str, int len) {
%typemap(freearg,noblock=1,match="in") (const unsigned char *str, size_t len) {
if (alloc$argnum == SWIG_NEWOBJ) %delete_array(buf$argnum);
}

Expand Down

0 comments on commit e2ed3f2

Please sign in to comment.