let's start using __attribute__((cleanup)), it helps to simplify a lot of code, and hopefully avoid some bugs. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>