Print this page
smatch clean rtld

*** 867,877 **** * LM_ID_BASE: Operate on the PRIMARY (executables) link map * LM_ID_LDSO: Operation on ld.so.1's link map * LM_ID_NEWLM: Create a new link-map. */ if (lml == (Lm_list *)LM_ID_NEWLM) { ! if ((lml = calloc(sizeof (Lm_list), 1)) == NULL) return (NULL); /* * Establish the new link-map flags from the callers and those * explicitly provided. --- 867,877 ---- * LM_ID_BASE: Operate on the PRIMARY (executables) link map * LM_ID_LDSO: Operation on ld.so.1's link map * LM_ID_NEWLM: Create a new link-map. */ if (lml == (Lm_list *)LM_ID_NEWLM) { ! if ((lml = calloc(1, sizeof (Lm_list))) == NULL) return (NULL); /* * Establish the new link-map flags from the callers and those * explicitly provided.