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
f91fa372
Commit
f91fa372
authored
Jun 24, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Jun 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpp: Properly free defines (Valgrind).
parent
c8c609b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
preproc.c
libs/wpp/preproc.c
+6
-5
No files found.
libs/wpp/preproc.c
View file @
f91fa372
...
...
@@ -292,7 +292,7 @@ void pp_pop_define_state(void)
for
(
i
=
0
;
i
<
HASHKEY
;
i
++
)
{
while
((
ppp
=
pp_def_state
->
defines
[
i
])
!=
NULL
)
free_pp_entry
(
ppp
,
i
);
while
((
ppp
=
pp_def_state
->
defines
[
i
])
!=
NULL
)
pp_del_define
(
ppp
->
ident
);
}
state
=
pp_def_state
;
pp_def_state
=
state
->
next
;
...
...
@@ -302,6 +302,7 @@ void pp_pop_define_state(void)
void
pp_del_define
(
const
char
*
name
)
{
pp_entry_t
*
ppp
;
int
idx
=
pphash
(
name
);
if
((
ppp
=
pplookup
(
name
))
==
NULL
)
{
...
...
@@ -310,13 +311,13 @@ void pp_del_define(const char *name)
return
;
}
if
(
pp_status
.
debug
)
printf
(
"Deleting (%s, %d) <%s>
\n
"
,
pp_status
.
input
,
pp_status
.
line_number
,
name
);
free
(
ppp
->
ident
);
free
(
ppp
->
subst
.
text
);
free
(
ppp
->
filename
);
free_pp_entry
(
ppp
,
pphash
(
name
)
);
if
(
pp_status
.
debug
)
printf
(
"Deleted (%s, %d) <%s>
\n
"
,
pp_status
.
input
,
pp_status
.
line_number
,
name
);
free_pp_entry
(
ppp
,
idx
);
}
pp_entry_t
*
pp_add_define
(
const
char
*
def
,
const
char
*
text
)
...
...
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