diff --git a/sal/osl/unx/tempfile.c b/sal/osl/unx/tempfile.c index 2aad4bbba613..53311b75cd4c 100644 --- a/sal/osl/unx/tempfile.c +++ b/sal/osl/unx/tempfile.c @@ -263,8 +263,7 @@ static oslFileError osl_create_temp_file_impl_( if (osl_File_E_None == osl_error) rtl_uString_assign(ppustr_temp_file_name, tmp_file_path); - if (tmp_file_path) - rtl_uString_release(tmp_file_path); + rtl_uString_release(tmp_file_path); return osl_error; }