summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorMartin Petersson <martin.petersson@nokia.com>2011-02-16 11:46:36 (GMT)
committerMartin Petersson <martin.petersson@nokia.com>2011-02-16 11:49:53 (GMT)
commit02f2ac6d090547f5b13534d77fe7761d6f236fb2 (patch)
tree0fc9c905d31b0bf3d83fcd28aeb040af84f8ae5d /src/network
parentdf129c2449181869f0b95ae92d174b9eca52b2f7 (diff)
downloadQt-02f2ac6d090547f5b13534d77fe7761d6f236fb2.zip
Qt-02f2ac6d090547f5b13534d77fe7761d6f236fb2.tar.gz
Qt-02f2ac6d090547f5b13534d77fe7761d6f236fb2.tar.bz2
SSL: fix memory leak when loading certificates on Mac OS X
Reviewed-by: Markus Goetz
Diffstat (limited to 'src/network')
-rw-r--r--src/network/ssl/qsslsocket_openssl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/ssl/qsslsocket_openssl.cpp b/src/network/ssl/qsslsocket_openssl.cpp
index 7d21bd3..84e14ff 100644
--- a/src/network/ssl/qsslsocket_openssl.cpp
+++ b/src/network/ssl/qsslsocket_openssl.cpp
@@ -780,6 +780,7 @@ QList<QSslCertificate> QSslSocketPrivate::systemCaCertificates()
systemCerts.append(QSslCertificate::fromData(rawCert, QSsl::Der));
}
}
+ CFRelease(cfCerts);
}
else {
// no detailed error handling here