diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-18 10:39:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-19 08:36:55 +0200 |
commit | 77f994bd9c780bf3ad951f92f3ff35f294fe8026 (patch) | |
tree | 6d40577a1fe9bd48e8dfc4e22271a7d4f2878dac /rsc | |
parent | 60bb3e9d34a36faf438737992af468da83f6551b (diff) |
cid#983095 Resource leak
Change-Id: I2792afbfedbb256e0b79236505176f932ab25ce7
Diffstat (limited to 'rsc')
-rw-r--r-- | rsc/source/rscpp/cpp1.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rsc/source/rscpp/cpp1.c b/rsc/source/rscpp/cpp1.c index e6b84025f3e3..9f18dc4456b3 100644 --- a/rsc/source/rscpp/cpp1.c +++ b/rsc/source/rscpp/cpp1.c @@ -233,7 +233,7 @@ void InitCpp1() int MAIN(int argc, char** argv) { int i; - char** useargv; + char** useargv = 0; char** pfargv; if( nRunde == 0 ) @@ -351,6 +351,8 @@ int MAIN(int argc, char** argv) if (!eflag) exit(IO_ERROR); } + if( pfargv ) + free(pfargv); return( IO_NORMAL ); } |