]> gitweb.factorcode.org Git - factor.git/commitdiff
specialized-arrays: Don't leak in unit test.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 26 Aug 2012 01:38:44 +0000 (18:38 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 26 Aug 2012 01:38:44 +0000 (18:38 -0700)
basis/specialized-arrays/specialized-arrays-tests.factor

index 534d6c6617ceb6a2b51314ef13827f54ed3f00cf..263e0f72bb38cdb723c54c4bb7fd3e5cfcb65c42 100644 (file)
@@ -34,7 +34,7 @@ SPECIALIZED-ARRAYS: bool uchar ushort char uint float ulonglong ;
 [ B{ 210 4 1 } ushort cast-array ] must-fail
 
 [ { 3 1 3 3 7 } ] [
-    int-array{ 3 1 3 3 7 } malloc-byte-array 5 int <c-direct-array> >array
+    int-array{ 3 1 3 3 7 } malloc-byte-array [ 5 int <c-direct-array> >array ] with-disposal
 ] unit-test
 
 [ float-array{ 0x1.222,222p0   0x1.111,112p0   } ]