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
da5a398c
Commit
da5a398c
authored
Oct 23, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhelp: Fix a memory leak.
parent
00e90ac4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
hlpfile.c
programs/winhelp/hlpfile.c
+5
-1
No files found.
programs/winhelp/hlpfile.c
View file @
da5a398c
...
@@ -580,7 +580,11 @@ static BYTE* HLPFILE_DecompressGfx(BYTE* src, unsigned csz, unsigned sz, BYTE
...
@@ -580,7 +580,11 @@ static BYTE* HLPFILE_DecompressGfx(BYTE* src, unsigned csz, unsigned sz, BYTE
if
(
!
tmp
)
return
FALSE
;
if
(
!
tmp
)
return
FALSE
;
HLPFILE_UncompressLZ77
(
src
,
src
+
csz
,
tmp
);
HLPFILE_UncompressLZ77
(
src
,
src
+
csz
,
tmp
);
dst
=
tmp2
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
);
dst
=
tmp2
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sz
);
if
(
!
dst
)
return
FALSE
;
if
(
!
dst
)
{
HeapFree
(
GetProcessHeap
(),
0
,
tmp
);
return
FALSE
;
}
HLPFILE_UncompressRLE
(
tmp
,
tmp
+
sz77
,
&
tmp2
,
sz
);
HLPFILE_UncompressRLE
(
tmp
,
tmp
+
sz77
,
&
tmp2
,
sz
);
if
(
tmp2
-
dst
!=
sz
)
if
(
tmp2
-
dst
!=
sz
)
WINE_WARN
(
"Bogus gfx sizes (LZ77+RunLen): %u / %u
\n
"
,
tmp2
-
dst
,
sz
);
WINE_WARN
(
"Bogus gfx sizes (LZ77+RunLen): %u / %u
\n
"
,
tmp2
-
dst
,
sz
);
...
...
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