In get_lmbs() there's a code path for the case where stat(DYNAMIC_RECONFIG_MEM, &sbuf) fails. In that case, there's this code:
if (stat(DYNAMIC_RECONFIG_MEM, &sbuf)) {
struct dr_connector *drc_list, *drc;
drc_list = get_drc_info(OFDT_BASE);
drc_list is never freed in this code.
I don't know if this is ever seen in practice. Given drmgr is typically a short-lived process, this may be a low priority to fix.
In
get_lmbs()there's a code path for the case wherestat(DYNAMIC_RECONFIG_MEM, &sbuf)fails. In that case, there's this code:drc_listis never freed in this code.I don't know if this is ever seen in practice. Given
drmgris typically a short-lived process, this may be a low priority to fix.