]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/baconfig.h
Fix merge conflict leftover
[bacula/bacula] / bacula / src / baconfig.h
index c341826e7c6a3784d2ddeb5761aedc8549767fa5..24301083f3a7a72085dd48e557e2ffb8e52c66eb 100644 (file)
@@ -612,6 +612,9 @@ int  m_msg(const char *file, int line, POOLMEM *&pool_buf, const char *fmt, ...)
 #define bmalloc(size) b_malloc(__FILE__, __LINE__, (size))
 #endif
 
+/* Macro to simplify free/reset pointers */
+#define bfree_and_null(a) do{if(a){free(a); (a)=NULL;}} while(0)
+
 /*
  * Replace codes needed in both file routines and non-file routines
  * Job replace codes -- in "replace"