I am analyzing my code using valgrind tool for QtCreator and there is some leak which I don't understand and I am assuming this is coming from QT and not from my code.
Conditional jump or move depends on uninitialised value(s)
in Test::Test(QNetworkReply*, Test::CallType) in respond.cpp:16
1: /usr/lib64/qt4/libQtNetwork.so.4.7.4
2: QIODevice::read(char*,
long long) in
/usr
/lib64
/qt4
/libQtCore.
so.4.7.4
3: QIODevice::readAll() in
/usr
/lib64
/qt4
/libQtCore.
so.4.7.4
4: Test::Test(QNetworkReply*, Test::CallType) in <a href="file:///home/me/workspace/desktop/Desktop/respond.cpp:16" >respond.cpp:16</a>
.
.
.
Conditional jump or move depends on uninitialised value(s)
in Test::Test(QNetworkReply*, Test::CallType) in respond.cpp:16
1: /usr/lib64/qt4/libQtNetwork.so.4.7.4
2: QIODevice::read(char*, long long) in /usr/lib64/qt4/libQtCore.so.4.7.4
3: QIODevice::readAll() in /usr/lib64/qt4/libQtCore.so.4.7.4
4: Test::Test(QNetworkReply*, Test::CallType) in <a href="file:///home/me/workspace/desktop/Desktop/respond.cpp:16" >respond.cpp:16</a>
.
.
.
To copy to clipboard, switch view to plain text mode
My Test construct class ...in short... looks like this:
Test::Test(QNetworkReply *reply)
{
if(reply)
{
QByteArray data
= reply
->readAll
(); <<<<<< line
16 reply->deleteLater();
}
}
Test::Test(QNetworkReply *reply)
{
if(reply)
{
QByteArray data = reply->readAll(); <<<<<< line 16
reply->deleteLater();
}
}
To copy to clipboard, switch view to plain text mode
Thanks for looking.
Bookmarks