Fix test case

git-svn-id: https://gnunet.org/svn/gnunet@34277 140774ce-b5e7-0310-ab8b-a85725594a96
- free memory on error, coverity #13058

git-svn-id: https://gnunet.org/svn/gnunet@34278 140774ce-b5e7-0310-ab8b-a85725594a96