lib/base: heim_config_parse_file do not leak 'newfname'
commit5502fa4ecaad44628d91be1edca904d701c880f4
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 26 May 2020 01:17:42 +0000 (25 21:17 -0400)
committerNicolas Williams <nico@twosigma.com>
Tue, 26 May 2020 16:48:45 +0000 (26 11:48 -0500)
treeb6ac62a2bfb63803c6bb7aae540b607a3fd06c29
parent58db0edea0d67e1b9a6abcc14eeb474441f50dfa
lib/base: heim_config_parse_file do not leak 'newfname'

Refactor heim_config_parse_file() to use a common exit and
ensure that 'newfname' is freed on all exit paths.

Change-Id: Ie805ce2f9d6cbd26a3b98dc944b40864945b6d80
lib/base/config_file.c