Move pp->knowledge=NULL to after its last use.
Merge pull request #33 from ampli/free

Move pp->knowledge=NULL to after its last use.