aboutsummaryrefslogtreecommitdiffstats
path: root/tests/samplebinding/typesystem_sample.xml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/samplebinding/typesystem_sample.xml')
-rw-r--r--tests/samplebinding/typesystem_sample.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/samplebinding/typesystem_sample.xml b/tests/samplebinding/typesystem_sample.xml
index b3e05d4ed..f23320ccf 100644
--- a/tests/samplebinding/typesystem_sample.xml
+++ b/tests/samplebinding/typesystem_sample.xml
@@ -757,7 +757,7 @@
<conversion-rule class="native">
int numItems = PySequence_Size(%PYARG_1);
- int %out[numItems];
+ int *%out = new int[numItems]; //memory leak
for (int i=0; i &lt; numItems; i++) {
%out[i] = %CONVERTTOCPP[int](PySequence_GetItem(%PYARG_1, i));
}