Fix memory leaks on 'inf'

Detected with cppcheck

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
Merge pull request #10 from champtar/leaks

Fix memory leaks on 'inf' detected with cppcheck