From 949ccc8a7ed2a7ad075103e064ad92483ffa8720 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sun, 15 Sep 2013 14:01:06 +0000 Subject: layout: Add a method to cleanup layout data structures Add layout_cleanup() to layout.c and hook it up in cli_classic.c. Corresponding to flashrom svn r1749. Signed-off-by: Stefan Tauner Acked-by: Carl-Daniel Hailfinger --- cli_classic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli_classic.c') diff --git a/cli_classic.c b/cli_classic.c index 4c71d07c..70bccb5e 100644 --- a/cli_classic.c +++ b/cli_classic.c @@ -221,8 +221,6 @@ int main(int argc, char *argv[]) free(tempstr); cli_classic_abort_usage(); } - /* FIXME: A pointer to the image name is saved in a static array (of size MAX_ROMLAYOUT) - * by register_include_arg() and needs to be freed after processing them. */ break; case 'L': if (++operation_specified > 1) { @@ -527,6 +525,7 @@ out: for (i = 0; i < chipcount; i++) free(flashes[i].chip); + layout_cleanup(); free(filename); free(layoutfile); free(pparam); -- cgit v1.2.3