summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorne' Cornelius <nobbie@php.net>2003-03-05 13:17:00 +0000
committerCorne' Cornelius <nobbie@php.net>2003-03-05 13:17:00 +0000
commit5ab857c8b9839394eca9aed04f6f8995d6ebdbfb (patch)
tree16994bd9fb071750e859784450f3ae63b0b90175
parent7af6973d43676271901e7d39428f23edc0995816 (diff)
downloadphp-git-5ab857c8b9839394eca9aed04f6f8995d6ebdbfb.tar.gz
- Reverted emalloc(),efree() changed for persistant connection resources
-rw-r--r--ext/informix/ifx.ec8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec
index 549c1fdf65..e2e1e7d180 100644
--- a/ext/informix/ifx.ec
+++ b/ext/informix/ifx.ec
@@ -308,7 +308,7 @@ EXEC SQL END DECLARE SECTION;
EXEC SQL close database;
EXEC SQL DISCONNECT CURRENT;
}
- efree(link);
+ free(link);
IFXG(num_persistent)--;
IFXG(num_links)--;
}
@@ -495,7 +495,7 @@ EXEC SQL END DECLARE SECTION;
}
/* create the link */
- ifx = (char *) emalloc(sizeof(IFX));
+ ifx = (char *) malloc(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));
- efree(ifx);
+ free(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) {
- efree(ifx);
+ free(ifx);
efree(hashed_details);
RETURN_FALSE;
}