We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3054e97 commit c930de4Copy full SHA for c930de4
src/sass_context.cpp
@@ -220,7 +220,10 @@ extern "C" {
220
size_t imp_size = 0; while (imp) { imp_size ++; imp = imp->next; }
221
// create char* array to hold all paths plus null terminator
222
const char** plugin_paths = (const char**) calloc(imp_size + 1, sizeof(char*));
223
- if (plugin_paths == 0) throw(std::bad_alloc());
+ if (plugin_paths == 0){
224
+ free(include_paths); //free include_paths before throw
225
+ throw(std::bad_alloc());
226
+ }
227
// reset iterator
228
imp = c_ctx->plugin_paths;
229
// copy over the paths
0 commit comments