From 43032339d0517cd371b783693fb471a20f887e6d Mon Sep 17 00:00:00 2001 From: Gavin Kinsey Date: Thu, 19 Sep 2013 12:21:57 +0100 Subject: [PATCH] Fixed a memory leak for java STRING_ARRAY The allocation loop uses size, so the free loop should do the same, not size-1. --- Lib/java/various.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/java/various.i b/Lib/java/various.i index f589bf714..7ba7a5eb3 100644 --- a/Lib/java/various.i +++ b/Lib/java/various.i @@ -52,7 +52,7 @@ %typemap(freearg) char **STRING_ARRAY { int i; - for (i=0; i