Fix timer leak
Free used constants if not used anymore

Fixes memleak
Fix unitialized value
Close file descriptors used for warnings and messages
Merge pull request #11 from MartinNowack/Memleaks

Patch Set II - Memleaks