summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-21 09:20:31 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-21 11:55:10 +0000
commitef076fa1c1aa15d42969c701803564bbc75a0cb0 (patch)
tree96d649322eea8c59dc88806a3060f5c0bb1a2d74 /basic
parent4ea173180609df25a765c5a10889fc25863c659f (diff)
coverity#1255390 Resource leak
Change-Id: I3631d6bbcf45986deb1e911fcdb0e6606a0c6d91
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/methods.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index c1b688903e92..662dcc31416b 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -3722,6 +3722,8 @@ RTLFUNC(Shell)
pParamList[j] = NULL;
}
+ delete [] pParamList;
+
if( !bSucc )
{
StarBASIC::Error( SbERR_FILE_NOT_FOUND );