diff options
Diffstat (limited to 'lib/uid_wrapper/uid_wrapper.c')
-rw-r--r-- | lib/uid_wrapper/uid_wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/uid_wrapper/uid_wrapper.c b/lib/uid_wrapper/uid_wrapper.c index eec6d96742..0bc961ebdf 100644 --- a/lib/uid_wrapper/uid_wrapper.c +++ b/lib/uid_wrapper/uid_wrapper.c @@ -490,12 +490,14 @@ static int uwrap_new_id(pthread_t tid, bool do_alloc) if (do_alloc) { id = malloc(sizeof(struct uwrap_thread)); if (id == NULL) { + UWRAP_LOG(UWRAP_LOG_ERROR, "Unable to allocate memory"); errno = ENOMEM; return -1; } id->groups = malloc(sizeof(gid_t) * 1); if (id->groups == NULL) { + UWRAP_LOG(UWRAP_LOG_ERROR, "Unable to allocate memory"); SAFE_FREE(id); errno = ENOMEM; return -1; |