summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07ee8fd)
raw | patch | inline | side by side (parent: 07ee8fd)
author | Max Kellermann <max@duempel.org> | |
Fri, 7 Nov 2008 14:28:56 +0000 (15:28 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 7 Nov 2008 14:28:56 +0000 (15:28 +0100) |
The function browser_change_directory() did not free the return value
of g_path_get_dirname().
of g_path_get_dirname().
src/screen_browser.c | patch | blob | history |
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 26dca5285ac533d1f730bb389a3dbe6fed4b3a06..a09e2554ccd5ef48e67d95badbd191c9c727d264 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
if( strcmp(parent, ".") == 0 )
parent[0] = '\0';
path = g_strdup(parent);
+ g_free(parent);
} else {
/* entry==NULL, then new_path ("" is root) */
path = g_strdup(new_path);