mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-10-02 14:13:48 +00:00
Fixed small memory leak
Make sure to free result from g_get_current_dir
This commit is contained in:
parent
f82a727916
commit
e951770bf2
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue