ubi: fix resource leak in legacy codepath
authorDaniel Golle <daniel@makrotopia.org>
Sat, 14 Aug 2021 17:15:54 +0000 (18:15 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sat, 14 Aug 2021 17:53:16 +0000 (18:53 +0100)
commita77c4fac6f059e24257bf6fa810be03b4b9d7951
tree2e9df887afdf26b02657a70e01b0cf3f67f995ba
parent68ae639148ca503681c1a69e977d0c952a4d2a40
ubi: fix resource leak in legacy codepath

I'm not even sure we are even using this 'ubi' tool anywhere.
Fix the resource leak reported by Coverity anyway.

Coverity CID: 1330289 Resource leak
Coverity CID: 1330290 Resource leak
Coverity CID: 1330291 Resource leak

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
ubi.c