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
0fb444b5
Commit
0fb444b5
authored
Oct 09, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: Remove redundant NULL checks before free() (found by Smatch).
parent
5ceccecc
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
2 additions
and
14 deletions
+2
-14
parser.y
tools/widl/parser.y
+1
-1
msmangle.c
tools/winedump/msmangle.c
+1
-1
search.c
tools/winedump/search.c
+0
-3
symbol.c
tools/winedump/symbol.c
+0
-6
write.c
tools/wmc/write.c
+0
-1
parser.y
tools/wrc/parser.y
+0
-2
No files found.
tools/widl/parser.y
View file @
0fb444b5
...
...
@@ -1179,7 +1179,7 @@ static typeref_t *uniq_tref(typeref_t *ref)
static type_t *type_ref(typeref_t *ref)
{
type_t *t = ref->ref;
if (ref->name)
free(ref->name);
free(ref->name);
free(ref);
return t;
}
...
...
tools/winedump/msmangle.c
View file @
0fb444b5
...
...
@@ -37,7 +37,7 @@ typedef struct _compound_type
#define INIT_CT(ct) do { memset (&ct, 0, sizeof (ct)); } while (0)
/* free the memory used by a compound structure */
#define FREE_CT(ct)
do { if (ct.expression) free (ct.expression); } while (0
)
#define FREE_CT(ct)
free (ct.expression
)
/* Flags for data types */
#define DATA_VTABLE 0x1
...
...
tools/winedump/search.c
View file @
0fb444b5
...
...
@@ -348,10 +348,7 @@ static const char *get_type (parsed_symbol *sym, const char *proto, int arg)
void
search_cleanup
(
void
)
__attribute__
((
destructor
));
void
search_cleanup
(
void
)
{
if
(
grep_buff
)
free
(
grep_buff
);
if
(
fgrep_buff
)
free
(
fgrep_buff
);
}
#endif
tools/winedump/symbol.c
View file @
0fb444b5
...
...
@@ -109,18 +109,12 @@ void symbol_clear(parsed_symbol *sym)
assert
(
sym
->
symbol
);
free
(
sym
->
symbol
);
if
(
sym
->
return_text
)
free
(
sym
->
return_text
);
if
(
sym
->
function_name
)
free
(
sym
->
function_name
);
for
(
i
=
sym
->
argc
-
1
;
i
>=
0
;
i
--
)
{
if
(
sym
->
arg_text
[
i
])
free
(
sym
->
arg_text
[
i
]);
if
(
sym
->
arg_name
[
i
])
free
(
sym
->
arg_name
[
i
]);
}
memset
(
sym
,
0
,
sizeof
(
parsed_symbol
));
...
...
tools/wmc/write.c
View file @
0fb444b5
...
...
@@ -274,7 +274,6 @@ void write_h_file(const char *fname)
internal_error
(
__FILE__
,
__LINE__
,
"Invalid base for number print"
);
}
free
(
cptr
);
if
(
cast
)
free
(
cast
);
break
;
default:
...
...
tools/wrc/parser.y
View file @
0fb444b5
...
...
@@ -2906,9 +2906,7 @@ static resource_t *build_fontdirs(resource_t *tail)
free
(
lanfnt
);
clean
:
if
(
fnt
)
free
(
fnt
);
if
(
fnd
)
free
(
fnd
);
free
(
str
.str.cstr
);
return
lst
;
...
...
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