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.
2 parents 946ef49 + 7512ae8 commit 0e12964Copy full SHA for 0e12964
src/context.cpp
@@ -133,7 +133,7 @@ namespace Sass {
133
134
Context::~Context()
135
{
136
- // resources were allocated by strdup or malloc
+ // resources were allocated by malloc
137
for (size_t i = 0; i < resources.size(); ++i) {
138
free(resources[i].contents);
139
free(resources[i].srcmap);
src/sass_functions.cpp
@@ -18,7 +18,7 @@ extern "C" {
18
19
Sass_Function_Entry cb = (Sass_Function_Entry) calloc(1, sizeof(Sass_Function));
20
if (cb == 0) return 0;
21
- cb->signature = strdup(signature);
+ cb->signature = sass_copy_c_string(signature);
22
cb->function = function;
23
cb->cookie = cookie;
24
return cb;
0 commit comments