parser: fix definitely and possibly lost memory leaks

Merged Georgia Garcia requested to merge georgiag/apparmor:fix-memleak into master