memory handling in libwbclient?

Gerald (Jerry) Carter jerry at samba.org
Wed Jan 2 23:17:15 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Volker Lendecke wrote:
> Hi, Jerry!
> 
> Looking at libwbclient a bit more closely, one thing comes
> to mind: wbcGetpwnam() returns something that needs to be
> freed by wbcFreeMemory() whereas wbcLookupRids() and
> wbcLookupSid return something that needs to be explicitly
> with free(). Is that difference intended or just
> accidential? And, would you consider it worthwile to change 
> the functions that return malloc'ed memory to functions that
> return the hidden talloc structures?

Fixed.




cheers, jerry
- --
=====================================================================
Samba                                    ------- http://www.samba.org
Likewise Software          ---------  http://www.likewisesoftware.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHfBt7IR7qMdg1EfYRAtlJAKC0oYNi2wXnvLn/gpxGYoJ/8JPB/gCeML9I
8at7N95DyTwrjtK3tnQk6X8=
=Wc4j
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list