diff options
author | Matt Johnston <matt@ucc.asn.au> | 2017-05-21 10:54:11 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2017-05-21 10:54:11 +0800 |
commit | fb8fb7fed0bb822ccc11ed20229db51a3991a0e5 (patch) | |
tree | 55ee48f994e54c285846be8487ffe23876840d9b /dbutil.c | |
parent | 1abd239b9ded3386fac8d553aa4652da88a52d58 (diff) |
add dbmalloc epoch cleanup
--HG--
branch : fuzz
Diffstat (limited to 'dbutil.c')
-rw-r--r-- | dbutil.c | 39 |
1 files changed, 0 insertions, 39 deletions
@@ -520,45 +520,6 @@ void m_close(int fd) { } } -void * m_malloc(size_t size) { - - void* ret; - - if (size == 0) { - dropbear_exit("m_malloc failed"); - } - ret = calloc(1, size); - if (ret == NULL) { - dropbear_exit("m_malloc failed"); - } - return ret; - -} - -void * m_strdup(const char * str) { - char* ret; - - ret = strdup(str); - if (ret == NULL) { - dropbear_exit("m_strdup failed"); - } - return ret; -} - -void * m_realloc(void* ptr, size_t size) { - - void *ret; - - if (size == 0) { - dropbear_exit("m_realloc failed"); - } - ret = realloc(ptr, size); - if (ret == NULL) { - dropbear_exit("m_realloc failed"); - } - return ret; -} - void setnonblocking(int fd) { TRACE(("setnonblocking: %d", fd)) |