summaryrefslogtreecommitdiffstats
path: root/toolbox
diff options
context:
space:
mode:
authorTing-Yuan Huang <laszio@google.com>2016-11-15 16:27:03 -0800
committerTing-Yuan Huang <laszio@google.com>2016-11-15 16:27:03 -0800
commit58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b (patch)
tree4da9042976a8f467b3aa1b7bb3904326421c82af /toolbox
parent847670437bd4b11ad1d32ec65be84f39954b0a6c (diff)
downloadsystem_core-58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b.tar.gz
system_core-58da81d98748892fcbe9eeb71e7ca5c1b0e4b68b.tar.bz2
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[])
exit(1);
}
}
+ free(img);
}
return 0;
}