# HG changeset patch # User Matt Johnston # Date 1422456181 -28800 # Node ID 7668ca9ae132e18fe89dddb2306057690e7d5823 # Parent 97d1e54941fd3cbcc0c84faa2f51fcd3ed57377e Fix bad multi-statement define for m_free(), detected by Coverity diff -r 97d1e54941fd -r 7668ca9ae132 dbutil.h --- a/dbutil.h Wed Jan 28 22:42:29 2015 +0800 +++ b/dbutil.h Wed Jan 28 22:43:01 2015 +0800 @@ -91,7 +91,7 @@ void * m_malloc(size_t size); void * m_strdup(const char * str); void * m_realloc(void* ptr, size_t size); -#define m_free(X) free(X); (X) = NULL; +#define m_free(X) do {free(X); (X) = NULL;} while (0); void m_burn(void* data, unsigned int len); void setnonblocking(int fd); void disallow_core();