From: James Jones Date: Thu, 5 May 2022 21:54:42 +0000 (-0500) Subject: Wrap malloc() in MEM() to reassure coverity (CID #1469117) (#4485) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dee0c33b0e6f2fe71d070d3b6099bdab85fce4d5;p=thirdparty%2Ffreeradius-server.git Wrap malloc() in MEM() to reassure coverity (CID #1469117) (#4485) --- diff --git a/src/bin/radmin.c b/src/bin/radmin.c index 9f364aeddd8..f38a68e2950 100644 --- a/src/bin/radmin.c +++ b/src/bin/radmin.c @@ -688,7 +688,7 @@ static int tab_expand_config_thing(TALLOC_CTX *talloc_ctx, UNUSED void *ctx, fr_ if (!fr_command_strncmp(text, check)) continue; add: - expansions[count] = str = malloc(reflen + strlen(check) + offset + 1); + MEM(expansions[count] = str = malloc(reflen + strlen(check) + offset + 1)); memcpy(str, ref, reflen); str[reflen] = '.'; strcpy(str + reflen + offset, check);