src/dh-exec.c: Plug a few minor leaks

When returning from the program, always free what was allocated. It
doesn't really matter in reality, but this keeps valgrind happy, and
isn't much of a burden, either.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>