crypt32: Fix some memory leaks
Andrew Talbot
andrew.talbot at talbotville.com
Fri Sep 14 11:02:33 CDT 2007
Changelog:
crypt32: Fix some memory leaks.
diff -urN a/dlls/crypt32/msg.c b/dlls/crypt32/msg.c
--- a/dlls/crypt32/msg.c 2007-09-02 09:31:54.000000000 +0100
+++ b/dlls/crypt32/msg.c 2007-09-14 16:26:55.000000000 +0100
@@ -2079,6 +2079,7 @@
if (ret)
ret = !memcmp(hashBlob.pbData, computedHash,
hashBlob.cbData);
+ CryptMemFree(computedHash);
}
else
ret = FALSE;
diff -urN a/dlls/crypt32/rootstore.c b/dlls/crypt32/rootstore.c
--- a/dlls/crypt32/rootstore.c 2007-09-13 13:47:35.000000000 +0100
+++ b/dlls/crypt32/rootstore.c 2007-09-14 16:27:15.000000000 +0100
@@ -137,6 +137,7 @@
if (CertAddEncodedCertificateToStore(store,
X509_ASN_ENCODING, buf, size, CERT_STORE_ADD_NEW, NULL))
num_certs++;
+ CryptMemFree(buf);
}
}
}
More information about the wine-patches
mailing list