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
87118d00
Commit
87118d00
authored
Oct 18, 2009
by
Marcus Meissner
Committed by
Alexandre Julliard
Oct 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Fixed free_decompression_temps/_mem , handle NULL (Coverity).
parent
e77bef23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
fdi.c
dlls/cabinet/fdi.c
+5
-4
No files found.
dlls/cabinet/fdi.c
View file @
87118d00
...
...
@@ -2279,9 +2279,10 @@ static void free_decompression_temps(HFDI hfdi, const struct fdi_folder *fol,
}
}
static
void
free_decompression_mem
(
HFDI
hfdi
,
struct
fdi_folder
*
fol
,
static
void
free_decompression_mem
(
HFDI
hfdi
,
fdi_decomp_state
*
decomp_state
,
struct
fdi_file
*
file
)
{
struct
fdi_folder
*
fol
;
while
(
decomp_state
)
{
fdi_decomp_state
*
prev_fds
;
...
...
@@ -2896,17 +2897,17 @@ BOOL __cdecl FDICopy(
}
free_decompression_temps
(
hfdi
,
fol
,
decomp_state
);
free_decompression_mem
(
hfdi
,
fol
,
decomp_state
,
file
);
free_decompression_mem
(
hfdi
,
decomp_state
,
file
);
return
TRUE
;
bail_and_fail:
/* here we free ram before error returns */
free_decompression_temps
(
hfdi
,
fol
,
decomp_state
);
if
(
fol
)
free_decompression_temps
(
hfdi
,
fol
,
decomp_state
);
if
(
filehf
)
PFDI_CLOSE
(
hfdi
,
filehf
);
free_decompression_mem
(
hfdi
,
fol
,
decomp_state
,
file
);
free_decompression_mem
(
hfdi
,
decomp_state
,
file
);
return
FALSE
;
}
...
...
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