]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/c++/OSDictionary.cpp
xnu-792.13.8.tar.gz
[apple/xnu.git] / libkern / c++ / OSDictionary.cpp
index d9901b44ba57497e56891a96a180048080df99b8..7e63e8ffb413bfcfdd978b7d36ae18f45c5dfcb1 100644 (file)
@@ -242,7 +242,7 @@ void OSDictionary::free()
     (void) super::setOptions(0, kImmutable);
     flushCollection();
     if (dictionary) {
-        kfree((vm_offset_t)dictionary, capacity * sizeof(dictEntry));
+        kfree(dictionary, capacity * sizeof(dictEntry));
         ACCUMSIZE( -(capacity * sizeof(dictEntry)) );
     }
 
@@ -285,7 +285,7 @@ unsigned int OSDictionary::ensureCapacity(unsigned int newCapacity)
         bzero(&newDict[capacity], newSize - oldSize);
 
         ACCUMSIZE(newSize - oldSize);
-        kfree((vm_offset_t)dictionary, oldSize);
+        kfree(dictionary, oldSize);
 
         dictionary = newDict;
         capacity = newCapacity;