From 04fa1f52ea0025ce99a2c2dac31a07025004454d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 7 Nov 2008 15:28:56 +0100 Subject: [PATCH] screen_browser: free g_path_get_dirname() return value The function browser_change_directory() did not free the return value of g_path_get_dirname(). --- src/screen_browser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/screen_browser.c b/src/screen_browser.c index 26dca52..a09e255 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); -- 2.30.2