Valgrind memory leak reported in QT list append
I am using a serializer in QT C++. It looks ok but valgrind (memcheck tool) is reporting a memory leak on this function:

    QDataStream &operator>>( QDataStream &in, QList<AppNodeRecord *> *objAppNodeListRecord)
    {
        quint32 len;
        in >> len;
    
        objAppNodeListRecord->clear();
        for(quint32 i = 0; i < len; ++i)
        {
            AppNodeRecord *tmp=new AppNodeRecord;
            in >> tmp;
            objAppNodeListRecord->append(tmp);
    
            if (in.atEnd())
                break;
        }
        return in;
    }

Valgrind reports that this instance is not freed but it is been used in the QList.

    AppNodeRecord *tmp=new AppNodeRecord;

Could it be a valgrind issue?
Valgrind memory leak reported in QT list append
===

I am using a serializer in QT C++. It looks ok but valgrind (memcheck tool) is reporting a memory leak on this function:

    QDataStream &operator>>( QDataStream &in, QList<AppNodeRecord *> *objAppNodeListRecord)
    {
        quint32 len;
        in >> len;
    
        objAppNodeListRecord->clear();
        for(quint32 i = 0; i < len; ++i)
        {
            AppNodeRecord *tmp=new AppNodeRecord;
            in >> tmp;
            objAppNodeListRecord->append(tmp);
    
            if (in.atEnd())
                break;
        }
        return in;
    }

Valgrind reports that this instance is not freed but it is been used in the QList.

    AppNodeRecord *tmp=new AppNodeRecord;

Could it be a valgrind issue?