Fix memory leak in the procd #4343