pw-dump: fix memleaks

2 jobs for tree in 44 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Container
passed #3266083
container_fedora

00:00:13

 
  Build
passed #3266084
build_on_fedora

00:00:31