Kaydet (Commit) 77f994bd authored tarafından Noel Grandin's avatar Noel Grandin

cid#983095 Resource leak

Change-Id: I2792afbfedbb256e0b79236505176f932ab25ce7
üst 60bb3e9d
...@@ -233,7 +233,7 @@ void InitCpp1() ...@@ -233,7 +233,7 @@ void InitCpp1()
int MAIN(int argc, char** argv) int MAIN(int argc, char** argv)
{ {
int i; int i;
char** useargv; char** useargv = 0;
char** pfargv; char** pfargv;
if( nRunde == 0 ) if( nRunde == 0 )
...@@ -351,6 +351,8 @@ int MAIN(int argc, char** argv) ...@@ -351,6 +351,8 @@ int MAIN(int argc, char** argv)
if (!eflag) if (!eflag)
exit(IO_ERROR); exit(IO_ERROR);
} }
if( pfargv )
free(pfargv);
return( IO_NORMAL ); return( IO_NORMAL );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment