forked from lei.chen/myxce
fix memory leak
This commit is contained in:
parent
cf1dbdc07a
commit
e001d4955c
3 changed files with 48 additions and 68 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue