Fixed small memory leak

Make sure to free result from g_get_current_dir
This commit is contained in:
Jesse van den Kieboom 2009-02-25 19:50:51 +01:00
parent f82a727916
commit e951770bf2

View file

@ -79,6 +79,7 @@ gitg_dirs_initialize(int argc, char **argv)
path = g_build_filename(cwd, tmp, NULL);
g_free(tmp);
g_free(cwd);
}
g_snprintf(executable_directory, PATH_MAX, "%s", path);