Commit 06aea14d 06aea14de4fdbaf6875b499d08d7fec55e22facb by Alain Magloire

check the return status of pthread_mutex_destroy.

1 parent 91dfd76f
......@@ -74,7 +74,12 @@ mailer_create (mailer_t *pmailer, const char *name, int id)
if (mailer == NULL)
return ENOMEM;
RWLOCK_INIT (&(mailer->rwlock), NULL);
status = RWLOCK_INIT (&(mailer->rwlock), NULL);
if (status != 0)
{
mailer_destroy (&mailer);
return status;
}
/* Parse the url, it may be a bad one and we should bailout if this
failed. */
......