summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-01-28 09:25:58 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-01-28 11:29:18 +0000
commit81f9e937054a084e3fe6e9242db69e2476593188 (patch)
tree2a0235a9e73625e1f403330685060861038d6766 /sal
parentb34210ee8d84114873616a3988d5dfa6cff8bb49 (diff)
coverity#440520 Dereference before null check
Change-Id: Id0e2c8e5579ae81c368cf886e52c8306f271c067
Diffstat (limited to 'sal')
-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 579398c5f752..24f9304f5c2a 100644
--- a/sal/osl/unx/tempfile.c
+++ b/sal/osl/unx/tempfile.c
@@ -320,8 +320,7 @@ oslFileError SAL_CALL osl_createTempFile(
if (temp_file_url)
rtl_uString_release(temp_file_url);
- if (temp_file_name)
- rtl_uString_release(temp_file_name);
+ rtl_uString_release(temp_file_name);
}
if (base_directory)