Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cb257472
Commit
cb257472
authored
Jun 13, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Fix redundant checks for NULL before free(). Found by Smatch.
parent
9ed5c865
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
parser.y
tools/wrc/parser.y
+4
-9
No files found.
tools/wrc/parser.y
View file @
cb257472
...
...
@@ -531,8 +531,7 @@ resource
if(!win32)
parser_warning("LANGUAGE
not
supported
in
16-bit
mode");
if(currentlanguage)
free(currentlanguage);
free(currentlanguage);
if
(get_language_codepage($3,
$5)
==
-1)
parser_error(
"Language
%04x
is
not
supported",
($5<<10)
+
$3);
currentlanguage
=
new_language($3,
$5);
...
...
@@ -1460,11 +1459,8 @@ stringtable
}
/* Else were done */
}
if
(
tagstt_memopt
)
{
free(tagstt_memopt);
tagstt_memopt
=
NULL;
}
free
(
tagstt_memopt
);
tagstt_memopt
=
NULL
;
$$
=
tagstt
;
}
...
...
@@ -1477,8 +1473,7 @@ stt_head: tSTRINGTABLE loadmemopts opt_lvc {
tagstt_memopt
=
$2;
tagstt_version
=
$3->version;
tagstt_characts
=
$3->characts;
if($3)
free($3);
free($3);
}
;
...
...
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