diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-21 09:22:38 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-21 11:55:11 +0000 |
commit | ecc56da366960b642d0a7da1b4a47245243252f8 (patch) | |
tree | 455943b59c36654ffd74ca092731b44dd7484afe /basic/source | |
parent | coverity#1255390 Resource leak (diff) | |
download | core-ecc56da366960b642d0a7da1b4a47245243252f8.tar.gz core-ecc56da366960b642d0a7da1b4a47245243252f8.zip |
busted loop condition
regression from
commit 119873328acd70ca3569c21a0b1fe36277e8bf4c
Date: Thu Oct 21 15:34:02 2010 -0500
convert vos/process.hxx and related API
Change-Id: I36527a4f0109105b9853a79773b4c92f9bc4e902
Diffstat (limited to 'basic/source')
-rw-r--r-- | basic/source/runtime/methods.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 662dcc31416b..f27e77146407 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -3716,10 +3716,9 @@ RTLFUNC(Shell) osl_freeProcessHandle( pApp ); } - for(int j = 0; i < nParamCount; i++) + for(int j = 0; j < nParamCount; ++j) { rtl_uString_release(pParamList[j]); - pParamList[j] = NULL; } delete [] pParamList; |