fixed memory leak, debian stuff

never free'd pipes in main