npaextract: Fix memory leak