Fix more leaks found by ASan in the test suite
Many more tests will now complete without ASan complaints.
There is one minor leak fixed in compositor/main.c
and one in ivi-shell.c
. All the rest were just leaks in the tests themselves, quite straightforward.
After this series I still see 13 test programs fail the leak check.