[SSSD] [PATCH] Add common hash table setup

Stephen Gallagher sgallagh at redhat.com
Wed Oct 6 16:17:01 UTC 2010


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

On 10/06/2010 11:56 AM, Simo Sorce wrote:
> On Wed, 06 Oct 2010 11:42:34 -0400
> Stephen Gallagher <sgallagh at redhat.com> wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> sss_hash_create() produces a dhash table living in the talloc
>> hierarchy.
> 
> ACK.
> 
> Simo.
> 

Self-nack.

I just realized that freeing the table won't clean up all of its memory,
because all of the values will have been allocated on the table's parent
context, not on the table itself.

New patch attached plays some tricks with talloc parentage.

- -- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAkysoP0ACgkQeiVVYja6o6OjegCfai9Vu60Lnu1tbiaoy9zNQF6D
zH4AnA2qfd7HlU5QaHY+YKT8c2MEm6+z
=u28m
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-common-hash-table-setup.patch
Type: text/x-patch
Size: 3188 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101006/85366b9a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-common-hash-table-setup.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20101006/85366b9a/attachment.sig>


More information about the sssd-devel mailing list