main: fix some resource leaks
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 2 Sep 2019 19:34:15 +0000 (21:34 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 20 Sep 2019 19:37:40 +0000 (21:37 +0200)
commitf34a383eeed6282fa16fb021157a60c75f33fdcd
treeeaa337bab79cf7f8b71723d07e2633350d3bcea7
parent5a52b379902471cef495687547c7b568142f66d2
main: fix some resource leaks

This fixes some resources leaks mostly in error patches.

Coverity: #1330236, #1330237, #1330238
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
main.c