Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
db57199f
Commit
db57199f
authored
Dec 15, 2016
by
Cristian Simarro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved fclose to avoid free a null pointer
parent
489977f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+1
-1
No files found.
darshan-runtime/lib/darshan-core.c
View file @
db57199f
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment