Skip to content

Commit 7c846b2

Browse files
committed
code-style fix for MemoryLeak Patch
1 parent c930de4 commit 7c846b2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sass_context.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,10 @@ extern "C" {
220220
size_t imp_size = 0; while (imp) { imp_size ++; imp = imp->next; }
221221
// create char* array to hold all paths plus null terminator
222222
const char** plugin_paths = (const char**) calloc(imp_size + 1, sizeof(char*));
223-
if (plugin_paths == 0){
224-
free(include_paths); //free include_paths before throw
225-
throw(std::bad_alloc());
226-
}
223+
if (plugin_paths == 0) {
224+
free(include_paths); //free include_paths before throw
225+
throw(std::bad_alloc());
226+
}
227227
// reset iterator
228228
imp = c_ctx->plugin_paths;
229229
// copy over the paths

0 commit comments

Comments
 (0)