From afcda2f724caad73fae898f5fceef9adf0777978 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Mon, 13 Feb 2012 19:39:20 -0800 Subject: [PATCH] Fix a leak --- complete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complete.cpp b/complete.cpp index f9f9e064d..54a0f2cd8 100644 --- a/complete.cpp +++ b/complete.cpp @@ -1390,7 +1390,7 @@ static void complete_param_expand( const wchar_t *str, ACCEPT_INCOMPLETE | (do_file?0:EXPAND_SKIP_WILDCARDS); - if( expand_string( wcsdup(comp_str), + if( expand_string( comp_str, comp_out, flags ) == EXPAND_ERROR ) {