diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 09:25:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-28 11:29:18 +0000 |
commit | b34210ee8d84114873616a3988d5dfa6cff8bb49 (patch) | |
tree | 463b23be107383413ef561a23843bc4796decd60 /sal | |
parent | 6ebd4a9925b47f2562a91a7a44aea84d95a0047c (diff) |
coverity#440519 Dereference before null check
Change-Id: I78cfe1a807e59d63dc22fbec8bcadfa7596d5a96
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/tempfile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/osl/unx/tempfile.c b/sal/osl/unx/tempfile.c index 53311b75cd4c..579398c5f752 100644 --- a/sal/osl/unx/tempfile.c +++ b/sal/osl/unx/tempfile.c @@ -250,8 +250,7 @@ static oslFileError osl_create_temp_file_impl_( if ((osl_File_E_None == osl_error) || (osl_error != osl_File_E_EXIST)) { - if (rand_name) - rtl_uString_release(rand_name); + rtl_uString_release(rand_name); if (tmp_file_url) rtl_uString_release(tmp_file_url); |