Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e01e8a01
Commit
e01e8a01
authored
Oct 21, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Remove redundant NULL check before free(). Found by Smatch.
parent
cc4b9656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
parser.y
tools/wrc/parser.y
+10
-10
No files found.
tools/wrc/parser.y
View file @
e01e8a01
...
...
@@ -1376,16 +1376,16 @@ itemex_options
$$->gotid
=
TRUE;
$$->gottype
=
TRUE;
$$->gotstate
=
TRUE;
if($2)
free($2);
if($4)
free($4);
free($2);
free($4);
}
|
','
e_expr
','
e_expr
','
expr
{
$$
=
new_itemex_opt($2
?
*($2)
:
0,
$4
?
*($4)
:
0,
$6,
0);
$$->gotid
=
TRUE;
$$->gottype
=
TRUE;
$$->gotstate
=
TRUE;
if($2)
free($2);
if($4)
free($4);
free($2);
free($4);
}
;
...
...
@@ -1397,23 +1397,23 @@ itemex_p_options
}
|
','
e_expr
','
expr
{
$$
=
new_itemex_opt($2
?
*($2)
:
0,
$4,
0,
0);
if($2)
free($2);
free($2);
$$->gotid
=
TRUE;
$$->gottype
=
TRUE;
}
|
','
e_expr
','
e_expr
','
expr
{
$$
=
new_itemex_opt($2
?
*($2)
:
0,
$4
?
*($4)
:
0,
$6,
0);
if($2)
free($2);
if($4)
free($4);
free($2);
free($4);
$$->gotid
=
TRUE;
$$->gottype
=
TRUE;
$$->gotstate
=
TRUE;
}
|
','
e_expr
','
e_expr
','
e_expr
','
expr
{
$$
=
new_itemex_opt($2
?
*($2)
:
0,
$4
?
*($4)
:
0,
$6
?
*($6)
:
0,
$8);
if($2)
free($2);
if($4)
free($4);
if($6)
free($6);
free($2);
free($4);
free($6);
$$->gotid
=
TRUE;
$$->gottype
=
TRUE;
$$->gotstate
=
TRUE;
...
...
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