Ticket #45411

Qt: spy_steal_shared() 'cd' leak

Eröffnet am: 2022-08-21 19:03 Letztes Update: 2022-09-03 18:10

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
3

Details

Clang analyzer on S3_0:

client/gui-qt/dialogs.cpp:2436:3: warning: Potential leak of memory pointed to by 'cd' [cplusplus.NewDeleteLeaks]
astr_free(&stra);

---

I think that comes from the fact that 'cd' is created outside the "if (pvictim)" -block, but e.g. 'cd->show_me();' is within that block so that there never is a dialog to close, and destroy.

This is not just a potential memory leak, but I think there a many other consequences as well. For examply I don't if 'is_more_user_input_needed = TRUE;' set earlier will ever get cleared when the dialog is not shown.

Ticket-Verlauf (3/8 Historien)

2022-08-21 19:03 Aktualisiert von: cazfi
  • New Ticket "Qt: spy_steal_shared() 'cd' leak" created
2022-08-21 19:41 Aktualisiert von: cazfi
2022-08-26 23:12 Aktualisiert von: cazfi
  • Details Updated
2022-08-26 23:37 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
2022-09-03 18:10 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden