Verified Commit 55c8e61f authored by Zander's avatar Zander 💥

Catch a double free

parent 26e50b4f
Pipeline #83908 passed with stage
in 11 minutes and 42 seconds
......@@ -103,9 +103,10 @@ dia_get_data_directory(const gchar* subdir)
g_free (sLoc);
return returnPath;
gchar *base = PKGDATADIR;
gchar *base = g_strdup (PKGDATADIR);
char *ret;
if (g_getenv ("DIA_BASE_PATH") != NULL) {
g_free (base);
/* a small hack cause the final destination and the local path differ */
base = g_build_filename (g_getenv ("DIA_BASE_PATH"), "data", NULL);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment