diff options
author | antirez <antirez@gmail.com> | 2012-03-27 15:24:33 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-03-27 15:24:33 +0200 |
commit | 23c0cdd2ad8b15defab56eca89a42c67cadd9a34 (patch) | |
tree | 129acfed169a12b05645bd0899a83ea25e76619a /src/zmalloc.c | |
parent | aa96122d968308f77c4d26ba24c6ec9727b4e88b (diff) | |
download | redis-23c0cdd2ad8b15defab56eca89a42c67cadd9a34.tar.gz |
Produce the watchlog warning log in a way that is safer from a signal handler. Fix a memory leak in the backtrace generation function.
Diffstat (limited to 'src/zmalloc.c')
-rw-r--r-- | src/zmalloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zmalloc.c b/src/zmalloc.c index 970677355..5e5598cf1 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -227,6 +227,10 @@ void zmalloc_enable_thread_safeness(void) { zmalloc_thread_safe = 1; } +void zlibc_free(void *ptr) { + free(ptr); +} + /* Get the RSS information in an OS-specific way. * * WARNING: the function zmalloc_get_rss() is not designed to be fast |