Qt: rtpstream_id memleak

Free fwd_id and rev_id, not just their members, if they aren't used.
Coverity CID 1512428
This commit is contained in:
John Thacker 2023-03-02 08:55:28 -05:00
parent 4c94673401
commit c6c9aae152
1 changed files with 2 additions and 0 deletions

View File

@ -3129,9 +3129,11 @@ QString WiresharkMainWindow::findRtpStreams(QVector<rtpstream_id_t *> *stream_id
//
if (!fwd_id_used) {
rtpstream_id_free(fwd_id);
g_free(fwd_id);
}
if (!rev_id_used) {
rtpstream_id_free(rev_id);
g_free(rev_id);
}
return NULL;
}