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 a3c3a76 commit 13856f9Copy full SHA for 13856f9
src/context.cpp
@@ -132,7 +132,7 @@ namespace Sass {
132
133
Context::~Context()
134
{
135
- // resources were allocated by strdup or malloc
+ // resources were allocated by malloc
136
for (size_t i = 0; i < resources.size(); ++i) {
137
free(resources[i].contents);
138
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