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
633779b4
Commit
633779b4
authored
Nov 09, 2018
by
Hans Leidekker
Committed by
Alexandre Julliard
Nov 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rsaenh: Fix a memory leak (Valgrind).
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ef86011b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
rsaenh.c
dlls/rsaenh/rsaenh.c
+7
-6
No files found.
dlls/rsaenh/rsaenh.c
View file @
633779b4
...
...
@@ -3628,17 +3628,18 @@ BOOL WINAPI RSAENH_CPGetHashParam(HCRYPTPROV hProv, HCRYPTHASH hHash, DWORD dwPa
&
pCryptHash
->
tpPRFParams
.
blobSeed
,
pbData
,
*
pdwDataLen
);
}
if
(
pbData
==
NULL
)
{
*
pdwDataLen
=
pCryptHash
->
dwHashSize
;
return
TRUE
;
}
if
(
pbData
&&
(
pCryptHash
->
dwState
!=
RSAENH_HASHSTATE_FINISHED
))
if
(
pCryptHash
->
dwState
!=
RSAENH_HASHSTATE_FINISHED
)
{
finalize_hash
(
pCryptHash
);
pCryptHash
->
dwState
=
RSAENH_HASHSTATE_FINISHED
;
}
if
(
!
pbData
)
{
*
pdwDataLen
=
pCryptHash
->
dwHashSize
;
return
TRUE
;
}
return
copy_param
(
pbData
,
pdwDataLen
,
pCryptHash
->
abHashValue
,
pCryptHash
->
dwHashSize
);
...
...
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