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
35dbc201
Commit
35dbc201
authored
Nov 19, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Nov 20, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cryptnet: Fix memory leaks querying an object.
parent
320407a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cryptnet_main.c
dlls/cryptnet/cryptnet_main.c
+4
-0
No files found.
dlls/cryptnet/cryptnet_main.c
View file @
35dbc201
...
@@ -1246,20 +1246,24 @@ static BOOL WINAPI CRYPT_CreateAny(LPCSTR pszObjectOid,
...
@@ -1246,20 +1246,24 @@ static BOOL WINAPI CRYPT_CreateAny(LPCSTR pszObjectOid,
if
(
!
CertAddCertificateContextToStore
(
store
,
if
(
!
CertAddCertificateContextToStore
(
store
,
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
ret
=
FALSE
;
ret
=
FALSE
;
CertFreeCertificateContext
(
context
);
break
;
break
;
case
CERT_QUERY_CONTENT_CRL
:
case
CERT_QUERY_CONTENT_CRL
:
if
(
!
CertAddCRLContextToStore
(
store
,
if
(
!
CertAddCRLContextToStore
(
store
,
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
ret
=
FALSE
;
ret
=
FALSE
;
CertFreeCRLContext
(
context
);
break
;
break
;
case
CERT_QUERY_CONTENT_CTL
:
case
CERT_QUERY_CONTENT_CTL
:
if
(
!
CertAddCTLContextToStore
(
store
,
if
(
!
CertAddCTLContextToStore
(
store
,
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
context
,
CERT_STORE_ADD_ALWAYS
,
NULL
))
ret
=
FALSE
;
ret
=
FALSE
;
CertFreeCTLContext
(
context
);
break
;
break
;
default:
default:
CertAddStoreToCollection
(
store
,
contextStore
,
0
,
0
);
CertAddStoreToCollection
(
store
,
contextStore
,
0
,
0
);
}
}
CertCloseStore
(
contextStore
,
0
);
}
}
else
else
ret
=
FALSE
;
ret
=
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