unittest: fix coverity 274736 40/36940/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 18 Aug 2022 12:30:20 +0000 (12:30 +0000)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 18 Aug 2022 23:22:28 +0000 (23:22 +0000)
commit47c1b1c6338c2d46173f337cf69a4b0d7f27845e
treec83948bf408bb0298722d24ab1e67255d0ce7f13
parent97d3d54c91097b52bf12324131bdac43aebc8808
unittest: fix coverity 274736

Free up the vapi context in case of failure.

Type: fix
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Change-Id: I4f64e8718014d714f1b82877e69d2354b5fa44fb
src/plugins/unittest/api_test.c