From 63015f41477689b038a0764b98a0d1fd134335d2 Mon Sep 17 00:00:00 2001 From: Marcel Greter Date: Sat, 20 Dec 2014 02:53:01 +0100 Subject: [PATCH] Remove out of scope continue op --- parser.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/parser.cpp b/parser.cpp index da7ba2ccef..2631912ea8 100644 --- a/parser.cpp +++ b/parser.cpp @@ -174,6 +174,7 @@ namespace Sass { sass_import_get_path(current), cookie); if (includes) { + struct Sass_Import** list = includes; while (*includes) { struct Sass_Import* include = *includes; const char *file = sass_import_get_path(include); @@ -192,13 +193,11 @@ namespace Sass { } ++includes; } - // go for next parse loop + // deallocate returned memory + sass_delete_import_list(list); + // parse next import continue; } - // deallocate returned memory - sass_delete_import_list(includes); - // custom importer returned nothing - // means we should use default loader } add_single_file(imp, import_path);