diff options
author | Luke Leighton <lkcl@samba.org> | 1999-12-22 02:00:13 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-12-22 02:00:13 +0000 |
commit | ac8d8d9bf3ad1f19dc8e25c922ccde82e62c5b4b (patch) | |
tree | 0fcd2fd427743454d60d50b8286920ca819bcdc1 /source/mem_man | |
parent | 87810bc4b73e0f39f844a381ceb5b7a1f2a81ea1 (diff) | |
download | samba-ac8d8d9bf3ad1f19dc8e25c922ccde82e62c5b4b.tar.gz |
i don't get it. there's some memory corruption somewhere. i turned
-DMEM_MAN on, and the memory corruption went away. AGH!
trying various clean-ups and adding various debug messages to track it
down.
Diffstat (limited to 'source/mem_man')
-rw-r--r-- | source/mem_man/mem_man.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/mem_man/mem_man.c b/source/mem_man/mem_man.c index 34ae6fd43c1..ec0ac1dd5ff 100644 --- a/source/mem_man/mem_man.c +++ b/source/mem_man/mem_man.c @@ -195,7 +195,6 @@ static void error_signal_handler() mem_check_buffers(); smb_mem_write_status(dbf); smb_mem_write_errors(dbf); - abort(); } #endif @@ -259,7 +258,7 @@ static int mem_first_avail_slot(void) /******************************************************************* find which Index a pointer refers to ********************************************************************/ -static int mem_find_Index(void *ptr) +static int mem_find_Index(const void *ptr) { int i; int start = last_block_allocated+mem_blocks_allocated/50; @@ -410,7 +409,7 @@ void *smb_mem_malloc(size_t size,char *file,int line) /******************************************************************* dup a string ********************************************************************/ -char *smb_mem_strdup(char *s, char *file, int line) +char *smb_mem_strdup(const char *s, char *file, int line) { char *ret = (char *)smb_mem_malloc(strlen(s)+1, file, line); strcpy(ret, s); |