depmod: fix errorpath memleaks in report cycles logic
authorYauheni Kaliuta <yauheni.kaliuta@redhat.com>
Mon, 20 Mar 2017 10:09:51 +0000 (12:09 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 9 May 2017 06:45:34 +0000 (23:45 -0700)
commitcd019a39eadf7d30de87179fddb283ff14566eae
tree78ade0821a79f7719348a0725cc252ffd2fcb20b
parente5b6a658eab9f1fa6405e2ac98930723b7f2bbfd
depmod: fix errorpath memleaks in report cycles logic

The c7ce9f0c80f3d561078a78205a14c5ba7663cfdd commit (depmod:
handle nested loops) introduced a bunch of possible memory leaks
in error path. In the real world scenario it is not a problem,
since the utility quits if it detects any of the errors, but from
the programming point of view, it is not nice. So, add the
cleanups.

Signed-off-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
tools/depmod.c