Skip to content

Commit 8ef235c

Browse files
authored
fix friendly name buffer leak in xmlSecMSCngX509GetFriendlyNameUnicode (#1198)
1 parent 8424f58 commit 8ef235c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mscng/x509vfy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,7 @@ xmlSecMSCngX509GetFriendlyNameUnicode(PCCERT_CONTEXT cert) {
15031503
&dwPropSize);
15041504
if ((ret != TRUE) || (dwPropSize <= 0)) {
15051505
xmlSecMSCngLastError("CertGetCertificateContextProperty", NULL);
1506+
xmlFree(pbFriendlyName);
15061507
return(NULL);
15071508
}
15081509

0 commit comments

Comments
 (0)