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)
ignore warning about assignment in condition
Merge pull request #2 from ossec/master

sync fork
Merge branch 'master' into ar-fix-resourceleaks
fix gcc Wall warnings seen on travis
Merge pull request #82 from cgzones/Wall2

fix gcc wall warnings seen on travis
Merge pull request #68 from cgzones/condition-warning

ignore warning about assignment in condition
Merge pull request #81 from ChristianBeer/ar-fix-resourceleaks

fix resource leaks in active-response.c
Merge remote-tracking branch 'upstream/master'

Conflicts:
	src/os_auth/main-client.c