summaryrefslogtreecommitdiff
path: root/ext/dba/dba_db2.c
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-11-04 13:39:17 +0000
committerMarcus Boerger <helly@php.net>2002-11-04 13:39:17 +0000
commit02c903b25e2b4e9a0a1c54a2cbdb0ea020d1ea2f (patch)
tree5c2a4f718714be56bb2baad65c4b2b57dd8803f6 /ext/dba/dba_db2.c
parent3f7081c4390e4d62507c7a2e962f11efb1dfe257 (diff)
downloadphp-git-02c903b25e2b4e9a0a1c54a2cbdb0ea020d1ea2f.tar.gz
use ecmalloc/efree functions instead of (c|m)alloc/free
Diffstat (limited to 'ext/dba/dba_db2.c')
-rw-r--r--ext/dba/dba_db2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dba/dba_db2.c b/ext/dba/dba_db2.c
index 7b5d0bcf38..5b628c98f6 100644
--- a/ext/dba/dba_db2.c
+++ b/ext/dba/dba_db2.c
@@ -75,7 +75,7 @@ DBA_OPEN_FUNC(db2)
return FAILURE;
}
- info->dbf = calloc(sizeof(dba_db2_data), 1);
+ info->dbf = ecalloc(sizeof(dba_db2_data), 1);
((dba_db2_data *) info->dbf)->dbp = dbp;
return SUCCESS;
}
@@ -87,7 +87,7 @@ DBA_CLOSE_FUNC(db2)
if (dba->cursor)
dba->cursor->c_close(dba->cursor);
dba->dbp->close(dba->dbp, 0);
- free(dba);
+ efree(dba);
}
DBA_FETCH_FUNC(db2)