Bug 5683 - tlclient leaks memory in SoundPrepare
Summary: tlclient leaks memory in SoundPrepare
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Client (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: MediumPrio
Assignee: Pierre Ossman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-28 11:11 CET by Peter Åstrand
Modified: 2021-09-28 10:27 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Peter Åstrand cendio 2015-10-28 11:11:23 CET
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==
Comment 1 Peter Åstrand cendio 2015-10-29 11:12:53 CET
Created attachment 653 [details]
suggested patch

Note You need to log in before you can comment on or make changes to this bug.