Fix memory leak if status !=0.
Fix memory leak if status !=0.

robojukie/simbody,scamille/simbody,Gjacquenot/simbody,chrisdembia/simbody,elkingtonmcb/simbody,elkingtonmcb/simbody,scamille/simbody,chrisdembia/simbody,simbody/simbody,elkingtonmcb/simbody,Gjacquenot/simbody,robojukie/simbody,chrisdembia/simbody,simbody/simbody,scamille/simbody,robojukie/simbody,Gjacquenot/simbody