Skip to content

Commit ddfff11

Browse files
committed
Oops, we use erealloc later, so use this too
1 parent 19850ec commit ddfff11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ibm_db2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7221,7 +7221,7 @@ PHP_FUNCTION(db2_escape_string)
72217221
}
72227222

72237223
/* allocate twice the source length first (worst case) */
7224-
new_str = (char*)malloc(((length*2)+1)*sizeof(char));
7224+
new_str = (char*)emalloc(((length*2)+1)*sizeof(char));
72257225

72267226
source = str;
72277227
end = source + length;

0 commit comments

Comments
 (0)