summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/malloc.c2
-rw-r--r--src/common/socket.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/common/malloc.c b/src/common/malloc.c
index 90efd04ee..93d03107b 100644
--- a/src/common/malloc.c
+++ b/src/common/malloc.c
@@ -112,7 +112,9 @@ char* _bstrdup(const char *chr)
#ifdef USE_MEMMGR
+#if defined(DEBUG)
#define DEBUG_MEMMGR
+#endif
/* USE_MEMMGR */
diff --git a/src/common/socket.c b/src/common/socket.c
index 2dd860715..995aabedb 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -528,6 +528,7 @@ static int create_session(int fd, RecvFunc func_recv, SendFunc func_send, ParseF
session[fd]->func_send = func_send;
session[fd]->func_parse = func_parse;
session[fd]->rdata_tick = last_tick;
+ session[fd]->session_data = NULL;
return 0;
}