CTDB_NO_MEMORY_VOID() needs to return on error
[rusty/ctdb.git] / include / ctdb_private.h
index e5a7b8069434e7a2c499afdfb49f08e10b48e521..137dbee5f9a3da4af259e27db3f5b77f3dd682b0 100644 (file)
@@ -439,7 +439,7 @@ struct ctdb_db_context {
 #define CTDB_NO_MEMORY_VOID(ctdb, p) do { if (!(p)) { \
           DEBUG(0,("Out of memory for %s at %s\n", #p, __location__)); \
           ctdb_set_error(ctdb, "Out of memory at %s:%d", __FILE__, __LINE__); \
-         }} while (0)
+         return; }} while (0)
 
 #define CTDB_NO_MEMORY_NULL(ctdb, p) do { if (!(p)) { \
           DEBUG(0,("Out of memory for %s at %s\n", #p, __location__)); \