mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
fixed newly introduced crash in ora_bind
This commit is contained in:
parent
0d7729ed58
commit
679d841502
@ -1710,7 +1710,6 @@ int ora_set_param_values(oraCursor *cursor, int isout)
|
||||
|
||||
if (zend_hash_find(&EG(symbol_table), paramname, strlen(paramname) + 1, (void **)&pdata) == FAILURE){
|
||||
php_error(E_WARNING, "Can't find variable for parameter");
|
||||
efree(paramname);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1725,8 +1724,6 @@ int ora_set_param_values(oraCursor *cursor, int isout)
|
||||
|
||||
strncpy(param->progv, (*pdata)->value.str.val, len);
|
||||
param->progv[len] = '\0';
|
||||
|
||||
efree(paramname);
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user