Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
2a2cc1d8
Commit
2a2cc1d8
authored
Jan 30, 2013
by
Manuel Mohr
Browse files
stat: Nullify pointers during cleanup.
parent
635e1133
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/stat/statev.c
View file @
2a2cc1d8
...
...
@@ -199,9 +199,12 @@ void stat_ev_begin(const char *prefix, const char *filt)
void
stat_ev_end
(
void
)
{
if
(
stat_ev_file
)
{
if
(
stat_ev_file
!=
NULL
)
{
fclose
(
stat_ev_file
);
stat_ev_file
=
NULL
;
}
if
(
filter
!=
NULL
)
if
(
filter
!=
NULL
)
{
regfree
(
filter
);
filter
=
NULL
;
}
}
Write
Preview
Supports
Markdown
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