sim: Fixed memory leak in parsing sim files.

Change-Id: I271c9a81261048052387a49ec83c3b30fcddcab1
Merge branch 'jellybean' of github.com:Badadroid/android_external_libmocha-ipc into jellybean