]> git.saurik.com Git - apple/objc4.git/blobdiff - test/methodCacheLeaks.m
objc4-818.2.tar.gz
[apple/objc4.git] / test / methodCacheLeaks.m
index 968bf5ac396793ba73af17c2b5d9af3957dc95b4..cb624c07db1669e226099e026758a6e056f701fe 100644 (file)
@@ -61,5 +61,10 @@ int main()
         exit(1);
     }
     wait4(pid, NULL, 0, NULL);
-    printf("objs=%p\n", objs);
+
+    // Clean up. Otherwise leaks can end up seeing this as a leak, oddly enough.
+    for (int i = 0; i < classCount; i++) {
+       [objs[i] release];
+    }
+    free(objs);
 }