Commit db57199f authored by Cristian Simarro's avatar Cristian Simarro

moved fclose to avoid free a null pointer

parent 489977f7
...@@ -1083,10 +1083,10 @@ static void darshan_get_exe_and_mounts(struct darshan_core_runtime *core, ...@@ -1083,10 +1083,10 @@ static void darshan_get_exe_and_mounts(struct darshan_core_runtime *core,
ii = 0; ii = 0;
} }
} }
fclose(fh);
} else { } else {
sprintf(cmdl, " <unknown args>"); sprintf(cmdl, " <unknown args>");
} }
fclose(fh);
strncat(core->log_exemnt_p, cmdl, space_left); strncat(core->log_exemnt_p, cmdl, space_left);
space_left = DARSHAN_EXE_LEN-strlen(core->log_exemnt_p); space_left = DARSHAN_EXE_LEN-strlen(core->log_exemnt_p);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment