summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-07 11:54:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-07 12:19:26 +0000
commitb2a0d91884447734bf67cea349c5596ee8728190 (patch)
tree075ecf9c7209cb724723299f48c237b32c175ee0 /sal
parent3454a9b34266a8d370306a4de8178ef263f1621f (diff)
coverity#705824 Dereference before null check
Change-Id: Iaf867d92adcc90d90a03dd8b7a353609934d9115
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 fcc29022fee1..f11b4994ae89 100644
--- a/sal/osl/unx/tempfile.c
+++ b/sal/osl/unx/tempfile.c
@@ -317,8 +317,7 @@ oslFileError SAL_CALL osl_createTempFile(
rtl_uString_assign(ppustrTempFileURL, temp_file_url);
}
- if (temp_file_url)
- rtl_uString_release(temp_file_url);
+ rtl_uString_release(temp_file_url);
rtl_uString_release(temp_file_name);
}