fix memory leak

This commit is contained in:
Rongsong Shen 2025-12-10 15:25:05 +08:00
parent cf1dbdc07a
commit e001d4955c
3 changed files with 48 additions and 68 deletions

View file

@ -410,8 +410,9 @@ int handle_jobdispatch(cluster_t* c, endpoint_t* ep, xce_request_t* request)
} else {
/* notify dispatch ok */
notify_dispatch(c, ep, alloc->jobid, 0);
free_JobAlloc_ptr(&(alloc));
}
free_JobAlloc_ptr(&(alloc));
}
return rc;
}