Skip to content

Commit e2ed3f2

Browse files
authored
Merge pull request #445 from jrohel/fix/memleak_in_swig_python_wrapper
Fix: Memory leaks in SWIG generated code (for Python)
2 parents c773294 + 8615575 commit e2ed3f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bindings/solv.i

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ typedef struct {
6363
$2 = size;
6464
}
6565

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

0 commit comments

Comments
 (0)