Hi, Ian,

Here's another variant of the null pointer passed to attr_destroy.

Cheers,
Jeff

Signed-off-by: Jeff Moyer <jmo...@redhat.com>

diff --git a/lib/alarm.c b/lib/alarm.c
index 46df38a..f403d8f 100755
--- a/lib/alarm.c
+++ b/lib/alarm.c
@@ -239,7 +239,8 @@ int alarm_start_handler(void)
 
        status = pthread_create(&thid, pattrs, alarm_handler, NULL);
 
-       pthread_attr_destroy(pattrs);
+       if (pattrs)
+               pthread_attr_destroy(pattrs);
 
        return !status;
 }

_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to