added memory handlers

git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@861 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Moises Silva committed 2009-11-15 01:46:43 +00:00
1 parent e7a5ecacb1
commit c3a1f65be9
3 files changed
+94 -11

No files matched your search

+2 -2
View File
@@ -31,6 +31,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "openzap.h"
#include "hashtable.h"
#include "hashtable_private.h"
#include "hashtable_itr.h"
@@ -43,8 +44,7 @@ struct hashtable_itr *
hashtable_iterator(struct hashtable *h)
{
unsigned int i, tablelength;
struct hashtable_itr *itr = (struct hashtable_itr *)
malloc(sizeof(struct hashtable_itr));
struct hashtable_itr *itr = zap_malloc(sizeof(struct hashtable_itr));
if (NULL == itr) return NULL;
itr->h = h;
itr->e = NULL;