toolbox: fix memory leak

free img

Test: make WITH_TIDY=1 mmma system/core/toolbox
Change-Id: I2f8feff0eddca763ee4e7fc9867480af60c8a911
This commit is contained in:
Ting-Yuan Huang 2016-11-15 16:27:03 -08:00
parent 847670437b
commit 58da81d987
1 changed files with 1 additions and 0 deletions

View File

@ -741,6 +741,7 @@ int newfs_msdos_main(int argc, char *argv[])
exit(1);
}
}
free(img);
}
return 0;
}