On Wed, 30 Oct 2024 11:11:31 +0530 Vipin Varghese <vipin.varghese at amd.com> wrote: > + if (topo_cnfg.io) { > + free(topo_cnfg.io); > + topo_cnfg.io = NULL; > + } No need to check for NULL before calling free.