From 58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b Mon Sep 17 00:00:00 2001 From: Ting-Yuan Huang Date: Tue, 15 Nov 2016 16:27:03 -0800 Subject: [PATCH] toolbox: fix memory leak free img Test: make WITH_TIDY=1 mmma system/core/toolbox Change-Id: I2f8feff0eddca763ee4e7fc9867480af60c8a911 --- toolbox/newfs_msdos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/toolbox/newfs_msdos.c b/toolbox/newfs_msdos.c index 27ea9e898..d7047e2c4 100644 --- a/toolbox/newfs_msdos.c +++ b/toolbox/newfs_msdos.c @@ -741,6 +741,7 @@ int newfs_msdos_main(int argc, char *argv[]) exit(1); } } + free(img); } return 0; }