sim: Be sure of calling freeargv() after successfully call buildargv().
authorChen Gang <gang.chen.5i5j@gmail.com>
Fri, 30 Jan 2015 22:06:38 +0000 (06:06 +0800)
committerChen Gang <gang.chen.5i5j@gmail.com>
Mon, 2 Feb 2015 20:03:38 +0000 (04:03 +0800)
commitcd71915c7738f0992daefe0320b10e3b1960535c
treece2be59d429be90d15f53f038dde8814949bae6b
parentc9ba137e2157b989b878198f94c7d5f01a937500
sim: Be sure of calling freeargv() after successfully call buildargv().

Or there will be memory leak.

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

* mcore/interp.c (sim_do_command): Call freeargv() before return.
sim/ChangeLog
sim/mcore/interp.c