sim: Call freeargv() when failure occurs
authorChen Gang <gang.chen.5i5j@gmail.com>
Fri, 30 Jan 2015 21:58:51 +0000 (05:58 +0800)
committerChen Gang <gang.chen.5i5j@gmail.com>
Mon, 2 Feb 2015 20:03:34 +0000 (04:03 +0800)
commitc9ba137e2157b989b878198f94c7d5f01a937500
tree72c034b94d20bdc0ea753d04f07052f13bbc33f9
parent24dd580891ed5fc331758d608b16d636eabd1ad3
sim: Call freeargv() when failure occurs

After successfully call buildargv(), the code need to be sure of calling
freeargv() in any cases.

2015-02-02  Chen Gang <gang.chen.5i5j@gmail.com>

       * common/sim-options.c (sim_args_command): Call freeargv() when
       failure occurs.
sim/ChangeLog
sim/common/sim-options.c