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