summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/tempfile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/osl/unx/tempfile.c b/sal/osl/unx/tempfile.c
index 24f9304f5c2a..fcc29022fee1 100644
--- a/sal/osl/unx/tempfile.c
+++ b/sal/osl/unx/tempfile.c
@@ -323,8 +323,7 @@ oslFileError SAL_CALL osl_createTempFile(
rtl_uString_release(temp_file_name);
}
- if (base_directory)
- rtl_uString_release(base_directory);
+ rtl_uString_release(base_directory);
return osl_error;
}