aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_browser.c')
-rw-r--r--src/screen_browser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 26dca5285..a09e2554c 100644
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
@@ -189,6 +189,7 @@ browser_change_directory(struct screen_browser *browser, mpdclient_t *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);