fix ressource and memory leaks (reported by cppcheck)
clean memory in case of an error
fix more ressource and memory leaks (not reported by cppcheck)
Merge branch 'master' into ar-fix-resourceleaks
Merge pull request #81 from ChristianBeer/ar-fix-resourceleaks

fix resource leaks in active-response.c