diff --git a/complete.c b/complete.c index 747a7137f..482597d86 100644 --- a/complete.c +++ b/complete.c @@ -588,7 +588,7 @@ static void parse_cmd_string( void *context, Use the empty string as the 'path' for commands that can not be found. */ - path = wcsdup(L""); + path = halloc_wcsdup( context, L""); } /* Make sure the path is not included in the command */