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.

Qt Code:
  1. Conditional jump or move depends on uninitialised value(s)
  2. in Test::Test(QNetworkReply*, Test::CallType) in respond.cpp:16
  3. 1: /usr/lib64/qt4/libQtNetwork.so.4.7.4
  4. 2: QIODevice::read(char*, long long) in /usr/lib64/qt4/libQtCore.so.4.7.4
  5. 3: QIODevice::readAll() in /usr/lib64/qt4/libQtCore.so.4.7.4
  6. 4: Test::Test(QNetworkReply*, Test::CallType) in <a href="file:///home/me/workspace/desktop/Desktop/respond.cpp:16" >respond.cpp:16</a>
  7. .
  8. .
  9. .
To copy to clipboard, switch view to plain text mode 


My Test construct class ...in short... looks like this:

Qt Code:
  1. Test::Test(QNetworkReply *reply)
  2. {
  3. if(reply)
  4. {
  5. QByteArray data = reply->readAll(); <<<<<< line 16
  6. reply->deleteLater();
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 

Thanks for looking.