Fixes memory leak with hashtable_iter
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 22 Apr 2011 21:02:20 +0000 (14:02 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:01 +0000 (17:36 -0700)
commitef8970d5a41f19f5e1b73f7e8d0d65f84399e8ec
tree120518cb689a2afaf063ba198e702a0b7494b81c
parent236911677b76b93f5efd31b3ae9e26706b1e7145
Fixes memory leak with hashtable_iter

Lots of ughs with this.  Had they not typedef'd, it might have been more
obvious.  The best way would be to have the caller provide the memory
too, so we can use stack vars, but whatever.  3rd party code...

Also changed the remaining two users to use hash_for_each.
kern/include/hashtable.h
kern/src/hashtable.c
kern/src/monitor.c
kern/src/resource.c