summaryrefslogtreecommitdiff
path: root/ext/odbc/birdstep.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/odbc/birdstep.c')
-rw-r--r--ext/odbc/birdstep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/odbc/birdstep.c b/ext/odbc/birdstep.c
index 8f764d8e06..db274d92c5 100644
--- a/ext/odbc/birdstep.c
+++ b/ext/odbc/birdstep.c
@@ -345,7 +345,7 @@ PHP_FUNCTION(birdstep_exec)
efree(res);
RETURN_LONG(rows);
} else { /* Was SELECT query */
- res->values = (VResVal *)emalloc(sizeof(VResVal)*cols);
+ res->values = (VResVal *)safe_emalloc(sizeof(VResVal), cols, 0);
res->numcols = cols;
for ( i = 0; i < cols; i++ ) {
SQLColAttributes(res->hstmt,i+1,SQL_COLUMN_NAME,