]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/c++/OSCollectionIterator.cpp
xnu-517.tar.gz
[apple/xnu.git] / libkern / c++ / OSCollectionIterator.cpp
index f75f936512ccfd1766066c197d764cac8e47023f..ac9f6223b30e0e934e83bf5a8957b34193ded433 100644 (file)
@@ -63,7 +63,7 @@ OSCollectionIterator::withCollection(const OSCollection *inColl)
     OSCollectionIterator *me = new OSCollectionIterator;
 
     if (me && !me->initWithCollection(inColl)) {
-        me->free();
+        me->release();
         return 0;
     }