util: Fix error path
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 1 Nov 2019 11:02:13 +0000 (12:02 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 1 Nov 2019 15:58:14 +0000 (16:58 +0100)
commit2c8e4a347bb68229937ceda6e099fb10e9b792d1
tree7b0f8e2bea43e12174566035ac8d5c062d8b74aa
parent415f9e48436d29f612348f58f546b3ad8d74ac38
util: Fix error path

Unlock and close the stream in case some file operations in
uci_open_stream() fail.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
util.c