diff options
| author | Corne' Cornelius <nobbie@php.net> | 2003-03-05 09:39:53 +0000 |
|---|---|---|
| committer | Corne' Cornelius <nobbie@php.net> | 2003-03-05 09:39:53 +0000 |
| commit | f42ff6e563f9ac77986a1bc29eb9b5a13c23f8a7 (patch) | |
| tree | e99c544d8ed91c372c94d6a486613b202b76a256 | |
| parent | 3c0d44c580f72b52f3d26fc803ba5ee3442313a0 (diff) | |
| download | php-git-f42ff6e563f9ac77986a1bc29eb9b5a13c23f8a7.tar.gz | |
- MFH: 1.87
| -rw-r--r-- | ext/informix/ifx.ec | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec index 00fe0b6c3c..549c1fdf65 100644 --- a/ext/informix/ifx.ec +++ b/ext/informix/ifx.ec @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2002 The PHP Group | + | Copyright (c) 1997-2003 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -308,7 +308,7 @@ EXEC SQL END DECLARE SECTION; EXEC SQL close database; EXEC SQL DISCONNECT CURRENT; } - free(link); + efree(link); IFXG(num_persistent)--; IFXG(num_links)--; } @@ -495,7 +495,7 @@ EXEC SQL END DECLARE SECTION; } /* create the link */ - ifx = (char *) malloc(sizeof(IFX)); + ifx = (char *) emalloc(sizeof(IFX)); IFXG(connectionid)++; sprintf(ifx, "%s%x", SAFE_STRING(user), IFXG(connectionid)); @@ -504,7 +504,7 @@ EXEC SQL END DECLARE SECTION; if (ifx_check() == IFX_ERROR) { IFXG(sv_sqlcode) = SQLCODE; php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", ifx_error(ifx)); - free(ifx); + efree(ifx); efree(hashed_details); RETURN_FALSE; } @@ -513,7 +513,7 @@ EXEC SQL END DECLARE SECTION; new_le.type = le_plink; new_le.ptr = ifx; if (zend_hash_update(&EG(persistent_list), hashed_details, hashed_details_length + 1, (void *) &new_le, sizeof(list_entry), NULL) == FAILURE) { - free(ifx); + efree(ifx); efree(hashed_details); RETURN_FALSE; } @@ -2406,7 +2406,7 @@ $endif; php_printf("<td>%s</td>", nullstr); } else { /* need an extra byte for string terminator */ - copy_content = malloc(lg + 1); + copy_content = emalloc(lg + 1); if (copy_content == NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Not enough memory for TEXT column"); RETURN_FALSE; @@ -2414,7 +2414,7 @@ $endif; memcpy(copy_content, content, lg); copy_content[lg] = 0; php_printf("<td>%s</td>", copy_content); - free(copy_content); + efree(copy_content); } break; |
