From: Max Kellermann Date: Fri, 7 Nov 2008 14:28:56 +0000 (+0100) Subject: screen_browser: free g_path_get_dirname() return value X-Git-Tag: v0.12_alpha1~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=04fa1f52ea0025ce99a2c2dac31a07025004454d;p=ncmpc.git 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(). --- 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);