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
be0d2944
Commit
be0d2944
authored
Sep 22, 2011
by
Juan Lang
Committed by
Alexandre Julliard
Sep 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
crypt32: Fix memory leak in failure cases.
parent
546bfa2c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
cert.c
dlls/crypt32/cert.c
+1
-1
crl.c
dlls/crypt32/crl.c
+1
-1
ctl.c
dlls/crypt32/ctl.c
+1
-1
No files found.
dlls/crypt32/cert.c
View file @
be0d2944
...
...
@@ -160,7 +160,7 @@ PCCERT_CONTEXT WINAPI CertCreateCertificateContext(DWORD dwCertEncodingType,
data
=
CryptMemAlloc
(
cbCertEncoded
);
if
(
!
data
)
{
C
ryptMemFree
(
cert
);
C
ertFreeCertificateContext
(
cert
);
cert
=
NULL
;
goto
end
;
}
...
...
dlls/crypt32/crl.c
View file @
be0d2944
...
...
@@ -58,7 +58,7 @@ PCCRL_CONTEXT WINAPI CertCreateCRLContext(DWORD dwCertEncodingType,
data
=
CryptMemAlloc
(
cbCrlEncoded
);
if
(
!
data
)
{
C
ryptMemFree
(
crl
);
C
ertFreeCRLContext
(
crl
);
crl
=
NULL
;
goto
end
;
}
...
...
dlls/crypt32/ctl.c
View file @
be0d2944
...
...
@@ -447,7 +447,7 @@ PCCTL_CONTEXT WINAPI CertCreateCTLContext(DWORD dwMsgAndCertEncodingType,
end:
if
(
!
ret
)
{
C
ryptMemFree
(
ctl
);
C
ertFreeCTLContext
(
ctl
);
ctl
=
NULL
;
LocalFree
(
ctlInfo
);
CryptMemFree
(
content
);
...
...
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