}
/* Initialize `dir' */
- dir = (fc_directory_conf_t *) malloc (sizeof (*dir));
+ dir = malloc (sizeof (*dir));
if (dir == NULL)
{
ERROR ("filecount plugin: malloc failed.");
if (dir->path == NULL)
{
ERROR ("filecount plugin: strdup failed.");
+ sfree (dir);
return (-1);
}