sim: Be sure of calling freeargv() after successfully call buildargv().
authorChen Gang <gang.chen.5i5j@gmail.com>
Fri, 30 Jan 2015 22:13:39 +0000 (06:13 +0800)
committerChen Gang <gang.chen.5i5j@gmail.com>
Mon, 2 Feb 2015 20:03:41 +0000 (04:03 +0800)
commit907c4910c3175ce3e9fc9bfb897527ca241ffd24
tree813e719a9ed4b17f31adc2ba26becb19d9c92adb
parentcd71915c7738f0992daefe0320b10e3b1960535c
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>

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