d04fc01de2
Unsuccesfull memory allocation for elements inside cfgfile structure could result in resource leak. Fixed by pointer verification after each malloc, if malloc fail - error branch is proceeded with freeing memory. Coverity issue: 195032 Fixes: d4cb8197589d ("cfgfile: support runtime modification") Signed-off-by: Jacek Piasecki <jacekx.piasecki@intel.com> Acked-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>