Skip to content
Snippets Groups Projects
Commit 28a0ee69 authored by Tim Wickberg's avatar Tim Wickberg
Browse files

Remove singular use of try_xmalloc().

Introduced in 360fb080. I don't believe this would solve the
underlying issue on a system that is OOM, and there is another
xmalloc call coming up immediately anyways that would then fatal().
parent 3c436b76
No related branches found
No related tags found
No related merge requests found
......@@ -518,11 +518,7 @@ static void _handle_stats(List prec_list, char *proc_stat_file,
if (fcntl(fd, F_SETFD, FD_CLOEXEC) == -1)
error("%s: fcntl(%s): %m", __func__, proc_stat_file);
prec = try_xmalloc(sizeof(jag_prec_t));
if (prec == NULL) { /* Avoid killing slurmstepd on malloc failure */
fclose(stat_fp);
return;
}
prec = xmalloc(sizeof(jag_prec_t));
if (!tres_count) {
assoc_mgr_lock_t locks = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment