sfree (args->argv[i]);
sfree (args->argv);
}
+ sfree (args);
} /* void srrd_create_args_destroy */
static srrd_create_args_t *srrd_create_args_create (const char *filename,
return (EEXIST);
}
- errno = 0;
status = stat (filename, &sb);
- if (errno != ENOENT)
+ if ((status == 0) || (errno != ENOENT))
{
pthread_mutex_unlock (&async_creation_lock);
return (EEXIST);