summaryrefslogtreecommitdiffhomepage
path: root/dbutil.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2017-05-21 10:54:11 +0800
committerMatt Johnston <matt@ucc.asn.au>2017-05-21 10:54:11 +0800
commitfb8fb7fed0bb822ccc11ed20229db51a3991a0e5 (patch)
tree55ee48f994e54c285846be8487ffe23876840d9b /dbutil.c
parent1abd239b9ded3386fac8d553aa4652da88a52d58 (diff)
add dbmalloc epoch cleanup
--HG-- branch : fuzz
Diffstat (limited to 'dbutil.c')
-rw-r--r--dbutil.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/dbutil.c b/dbutil.c
index 4c835a4..e7e486a 100644
--- a/dbutil.c
+++ b/dbutil.c
@@ -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))