1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-03 12:58:35 +03:00

werror: use WERR_NOT_ENOUGH_MEMORY in WERROR macros.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Günther Deschner 2015-12-03 12:26:58 +01:00 committed by Jeremy Allison
parent 217ae44f8a
commit 91046e562d

View File

@ -44,14 +44,14 @@ typedef uint32_t WERROR;
#define W_ERROR_HAVE_NO_MEMORY(x) do { \
if (!(x)) {\
return WERR_NOMEM;\
return WERR_NOT_ENOUGH_MEMORY;\
}\
} while (0)
#define W_ERROR_HAVE_NO_MEMORY_AND_FREE(x, ctx) do { \
if (!(x)) {\
talloc_free(ctx); \
return WERR_NOMEM;\
return WERR_NOT_ENOUGH_MEMORY;\
}\
} while (0)