summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Yuan Huang2016-11-15 18:27:03 -0600
committerTing-Yuan Huang2016-11-15 18:27:03 -0600
commit58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b (patch)
tree4da9042976a8f467b3aa1b7bb3904326421c82af /toolbox
parent847670437bd4b11ad1d32ec65be84f39954b0a6c (diff)
downloadplatform-system-core-58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b.tar.gz
platform-system-core-58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b.tar.xz
platform-system-core-58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b.zip
toolbox: fix memory leak
free img Test: make WITH_TIDY=1 mmma system/core/toolbox Change-Id: I2f8feff0eddca763ee4e7fc9867480af60c8a911
Diffstat (limited to 'toolbox')
-rw-r--r--toolbox/newfs_msdos.c1
1 files changed, 1 insertions, 0 deletions
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[])
741 exit(1); 741 exit(1);
742 } 742 }
743 } 743 }
744 free(img);
744 } 745 }
745 return 0; 746 return 0;
746} 747}