]> git.proxmox.com Git - mirror_corosync.git/commit
Add calls to pthread_attr_destroy().
authorRussell Bryant <russell@russellbryant.net>
Tue, 15 Feb 2011 02:51:29 +0000 (20:51 -0600)
committerSteven Dake <sdake@redhat.com>
Mon, 21 Feb 2011 19:14:07 +0000 (12:14 -0700)
commit907d9743520fcef6123a9e65e27d21981676a256
tree2095a44c70e2239e9e91c7d050490f42a0eb3681
parent4c9b8d3acf7a86e8aad97dc3ed0869af3e1c746a
Add calls to pthread_attr_destroy().

This patch adds a couple of missing calls to pthread_attr_destroy().

There were a couple of instances where pthread_attr_init() was being
used without a cooresponding call to pthread_attr_destroy().  This also
localizes the pthread_attr_t to the function where it is needed instead
of having it persist (the man page specifically states that destroying
the attributes structure has no effect on threads created using the
attributes).

Signed-off-by: Russell Bryant <russell@russellbryant.net>
Reviewed-by: Steven Dake <sdake@redhat.com>
exec/coroipcs.c
exec/timer.c