if (errno != ENOENT || (item = calloc(1, sizeof(*item))) == NULL) {
sudo_warnx(U_("unable to cache uid %u, out of memory"),
(unsigned int) uid);
+ /* cppcheck-suppress memleak */
debug_return_ptr(NULL);
}
item->refcnt = 1;
const size_t len = strlen(name) + 1;
if (errno != ENOENT || (item = calloc(1, sizeof(*item) + len)) == NULL) {
sudo_warnx(U_("unable to cache user %s, out of memory"), name);
+ /* cppcheck-suppress memleak */
debug_return_ptr(NULL);
}
item->refcnt = 1;
if (errno != ENOENT || (item = calloc(1, sizeof(*item))) == NULL) {
sudo_warnx(U_("unable to cache gid %u, out of memory"),
(unsigned int) gid);
+ /* cppcheck-suppress memleak */
debug_return_ptr(NULL);
}
item->refcnt = 1;
const size_t len = strlen(name) + 1;
if (errno != ENOENT || (item = calloc(1, sizeof(*item) + len)) == NULL) {
sudo_warnx(U_("unable to cache group %s, out of memory"), name);
+ /* cppcheck-suppress memleak */
debug_return_ptr(NULL);
}
item->refcnt = 1;