switch/generic: fix bug in job_info_free() logic that generated segv