Marcel Holtmann escribió: > Hi Manuel, > > >> I have made an application that makes use of the sdp lib. By >> running the app with valgrind [1] I found a memory leak. >> There's an static variable called bluetooth_base_uuid that's being >> initializated once but then never freed. >> I had added a method that should be called, only when the thread is >> about to end that frees that variable. >> Attached you can see the patch. >> > > thanks for the patch, but I put a different patch in the CVS that avoids > any memory allocation at all. > > Can you extract me a test program from your application, so I can double > check that it is doing the right thing on little and big endian systems > and we don't have any memory leaks at all anymore. > > Regards > > Marcel > > Great. I'm attaching you the source, you can find it online at: http://aircable.googlecode.com/svn/lcd_temp/AIRcableSPP2/ Regards, Manuel