projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
pe*alloc
[m6w6/ext-psi]
/
src
/
types
/
cpp_macro_call.c
diff --git
a/src/types/cpp_macro_call.c
b/src/types/cpp_macro_call.c
index 8d7dc23e48404b54d50dbfb7d3465fcc59ad002a..fb32bc0dccd5e4c611ada58b9a9293b596f1d439 100644
(file)
--- a/
src/types/cpp_macro_call.c
+++ b/
src/types/cpp_macro_call.c
@@
-31,7
+31,7
@@
struct psi_cpp_macro_call *psi_cpp_macro_call_init(zend_string *name,
struct psi_plist *args)
{
struct psi_cpp_macro_call *psi_cpp_macro_call_init(zend_string *name,
struct psi_plist *args)
{
- struct psi_cpp_macro_call *call =
calloc(1, sizeof(*call)
);
+ struct psi_cpp_macro_call *call =
pecalloc(1, sizeof(*call), 1
);
call->name = zend_string_copy(name);
call->args = args;
return call;
call->name = zend_string_copy(name);
call->args = args;
return call;
@@
-40,7
+40,7
@@
struct psi_cpp_macro_call *psi_cpp_macro_call_init(zend_string *name,
struct psi_cpp_macro_call *psi_cpp_macro_call_copy(
struct psi_cpp_macro_call *call)
{
struct psi_cpp_macro_call *psi_cpp_macro_call_copy(
struct psi_cpp_macro_call *call)
{
- struct psi_cpp_macro_call *copy =
calloc(1, sizeof(*copy)
);
+ struct psi_cpp_macro_call *copy =
pecalloc(1, sizeof(*copy), 1
);
copy->name = zend_string_copy(call->name);
if (call->token) {
copy->token = psi_token_copy(call->token);
copy->name = zend_string_copy(call->name);
if (call->token) {
copy->token = psi_token_copy(call->token);