We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0366032 commit e10afbaCopy full SHA for e10afba
1 file changed
ext/session/mod_mm.c
@@ -167,7 +167,7 @@ static void ps_mm_destroy(ps_mm *data)
167
168
g_hash_table_destroy(data->hash);
169
g_mapped_file_unref(data->mm);
170
- free(data);
+ efree(data);
171
}
172
173
PHP_MINIT_FUNCTION(ps_mm)
@@ -178,13 +178,13 @@ PHP_MINIT_FUNCTION(ps_mm)
178
char *ps_mm_path, euid[30];
179
zend_result ret;
180
181
- ps_mm_instance = calloc(1, sizeof(*ps_mm_instance));
+ ps_mm_instance = ecalloc(1, sizeof(*ps_mm_instance));
182
if (!ps_mm_instance) {
183
return FAILURE;
184
185
186
if (!(euid_len = slprintf(euid, sizeof(euid), "%d", geteuid()))) {
187
- free(ps_mm_instance);
+ efree(ps_mm_instance);
188
ps_mm_instance = NULL;
189
190
0 commit comments