client: Fix memory leaks in handle_job_opt()