[RFC] Fix some memory leaks in job.c and provider.c

* Fixed memory leaks for jobs:  The data pointer of process and pipe handles was not freed.
* Fixed memory leak in `provider_call`, caused by an early return and not freeing an argument.