Commit d45ce9c1 authored by Karel Slaný's avatar Karel Slaný

Fixed a potential resource leak.

CID 1369619.
parent 05261b91
......@@ -830,10 +830,11 @@ bool XmlLayer::parseSignedSentMessageDownloadResponse(const QByteArray &xmlData,
return false;
}
if (xmlContentLen == 0) {
free(xmlContent); xmlContent = NULL;
return false;
}
QByteArray soap((char*)xmlContent, xmlContentLen);
free(xmlContent);
free(xmlContent); xmlContent = NULL;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment