Skip to content

Commit e10afba

Browse files
committed
use ZendMM
1 parent 0366032 commit e10afba

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ext/session/mod_mm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static void ps_mm_destroy(ps_mm *data)
167167

168168
g_hash_table_destroy(data->hash);
169169
g_mapped_file_unref(data->mm);
170-
free(data);
170+
efree(data);
171171
}
172172

173173
PHP_MINIT_FUNCTION(ps_mm)
@@ -178,13 +178,13 @@ PHP_MINIT_FUNCTION(ps_mm)
178178
char *ps_mm_path, euid[30];
179179
zend_result ret;
180180

181-
ps_mm_instance = calloc(1, sizeof(*ps_mm_instance));
181+
ps_mm_instance = ecalloc(1, sizeof(*ps_mm_instance));
182182
if (!ps_mm_instance) {
183183
return FAILURE;
184184
}
185185

186186
if (!(euid_len = slprintf(euid, sizeof(euid), "%d", geteuid()))) {
187-
free(ps_mm_instance);
187+
efree(ps_mm_instance);
188188
ps_mm_instance = NULL;
189189
return FAILURE;
190190
}

0 commit comments

Comments
 (0)