}
endgrent();
- qsort(*g, sizeof(gid_t), *n, gid_cmp);
+ qsort(*g, *n, sizeof(gid_t), gid_cmp);
}
ObtPaths* obt_paths_new(void)
for (it = p->autostart_dirs; it; it = g_slist_next(it))
g_free(it->data);
g_slist_free(p->autostart_dirs);
+ for (it = p->exec_dirs; it; it = g_slist_next(it))
+ g_free(it->data);
+ g_slist_free(p->exec_dirs);
g_free(p->config_home);
g_free(p->data_home);
g_free(p->cache_home);
+ g_free(p->gid);
g_slice_free(ObtPaths, p);
}
struct stat st;
BSEARCH_SETUP(guint);
- stat(path, &st);
+ if (stat(path, &st) != 0)
+ return FALSE;
if (!S_ISREG(st.st_mode))
return FALSE;