Moved from https://www.cendio.com/bugzilla/show_bug.cgi?id=2723#c21: * Session::SoundPrepare leaks memory ==9408== 17 bytes in 1 blocks are definitely lost in loss record 71 of 576 ==9408== at 0x4A0645D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==9408== by 0x399D8860B9: strdup (in /usr/lib64/libc-2.18.so) ==9408== by 0x423F09: Session::SoundPrepare() (tlclient_session.cc:2042) ==9408== by 0x412D6E: MainWindow::DoLogin(std::string, std::string, std::string, std::string, pkcs11_certificate const*, std::string const&, std::string, bool) (tlclient_mainwindow.cc:856) ==9408== by 0x41410A: MainWindow::TriggerLogin() (tlclient_mainwindow.cc:644) ==9408== by 0x4144BE: MainWindow::CheckCerts(void*) (tlclient_mainwindow.cc:1361) ==9408== by 0x450892: Fl::wait(double) (Fl.cxx:546) ==9408== by 0x40D597: TLClient::runApplication() (tlclient_tlclient.cc:474) ==9408== by 0x40A714: main (tlclient_main.cc:299) ==9408== ==9408== 49 bytes in 1 blocks are definitely lost in loss record 239 of 576 ==9408== at 0x4A0645D: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so) ==9408== by 0x399D8860B9: strdup (in /usr/lib64/libc-2.18.so) ==9408== by 0x423D5D: Session::SoundPrepare() (tlclient_session.cc:2030) ==9408== by 0x412D6E: MainWindow::DoLogin(std::string, std::string, std::string, std::string, pkcs11_certificate const*, std::string const&, std::string, bool) (tlclient_mainwindow.cc:856) ==9408== by 0x41410A: MainWindow::TriggerLogin() (tlclient_mainwindow.cc:644) ==9408== by 0x4144BE: MainWindow::CheckCerts(void*) (tlclient_mainwindow.cc:1361) ==9408== by 0x450892: Fl::wait(double) (Fl.cxx:546) ==9408== by 0x40D597: TLClient::runApplication() (tlclient_tlclient.cc:474) ==9408== by 0x40A714: main (tlclient_main.cc:299) ==9408==
Created attachment 653 [details] suggested patch