Ticket #240 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

tdGetDeviceId leaks memory

Reported by: joakim eriksson <xertres@…> Owned by:
Priority: major Milestone: 2.1.2
Component: telldus-core Version: 2.1.1
Keywords: Cc:
Blocked By: Blocking:
Platform: Mac OS X Sensitive: no
Verified by Telldus: yes


If called multiple times "tdGetDeviceId" starts to leak memory.
The following example code makes "TelldusService" use more and more memory.

#include <telldus-core.h>

int main(int argc, char *argv[]) {

while(1) {

int id = tdGetDeviceId(0);



Change History

comment:1 Changed 7 years ago by micke prag <micke.prag@…>

  • Milestone set to 2.1.2

comment:2 Changed 7 years ago by micke prag <micke.prag@…>

  • Verified by Telldus set

Reproducible under OS X 10.8
Nonreproducible under Linux.

comment:3 Changed 7 years ago by micke.prag@…

  • Status changed from new to closed
  • Resolution set to fixed

commit 22e8549e7e72407e0e8521f8335369e13102bd72
Author: Micke Prag <micke.prag@…>
Date: Wed Sep 26 15:05:03 2012 +0200

Follow better the 'Apple Create Rule' for our variables. This fixes a memory leak. Closes #240

comment:4 Changed 7 years ago by micke.prag@…

commit 4467a75abc54de4cf819d79c7831009bd2b432cf
Author: Micke Prag <micke.prag@…>
Date: Thu Nov 8 10:49:04 2012 +0100

Cleanup our CF variables so we do not leak memory. See #240

Note: See TracTickets for help on using tickets.