diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-13 19:39:20 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-02-13 19:39:20 -0800 |
commit | afcda2f724caad73fae898f5fceef9adf0777978 (patch) | |
tree | b72a4614a8fe4983b3069829f5f4818d0a381ab9 /complete.cpp | |
parent | fcea723aa70e4dce3cb75c1642d1adb90cbefd4f (diff) |
Fix a leak
Diffstat (limited to 'complete.cpp')
-rw-r--r-- | complete.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/complete.cpp b/complete.cpp index f9f9e064..54a0f2cd 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 ) { |