Skip to content

Commit cc395ed

Browse files
committed
avoid double-free
1 parent 0b6a80b commit cc395ed

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

recipes/android/src/java.pyx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@ cdef class JavaMethod(object):
256256
else:
257257
raise Exception('Invalid return definition?')
258258

259-
# free args
260-
if j_args != NULL:
261-
free(j_args)
262-
263259
return ret
264260

265261
cdef call_staticmethod(self, jvalue *j_args):
@@ -341,9 +337,5 @@ cdef class JavaMethod(object):
341337
else:
342338
raise Exception('Invalid return definition?')
343339

344-
# free args
345-
if j_args != NULL:
346-
free(j_args)
347-
348340
return ret
349341

0 commit comments

Comments
 (0)