From: Danny Heijl Date: Tue, 5 Sep 2000 18:22:01 +0000 (+0000) Subject: - back out unneeded patch (danny). X-Git-Tag: php-4.0.3RC1~295 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81ddcd0b2b523228c9409e29a2559ad61f0ce697;p=php - back out unneeded patch (danny). --- diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec index 9042e22bd5..79e0ccf15d 100644 --- a/ext/informix/ifx.ec +++ b/ext/informix/ifx.ec @@ -1805,15 +1805,10 @@ PHP_FUNCTION(ifx_errormsg) ifx_errmsg[0] = 0; } - returnmsg = (char *) malloc(strlen(ifx_errmsg) + 128); + returnmsg = (char *) emalloc(strlen(ifx_errmsg) + 128); sprintf(returnmsg,ifx_errmsg, sqlca.sqlerrm); free(ifx_errmsg); - //RETURN_STRING(returnmsg,1); // can not use the macro, have to free the memory - return_value->value.str.len = strlen(returnmsg); - return_value->value.str.val = estrndup(returnmsg,return_value->value.str.len); - return_value->type = IS_STRING; - free(returnmsg); - return; + RETURN_STRING(returnmsg,0); } /* }}} */