File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2994,13 +2994,13 @@ PHP_METHOD(RedisCluster, rawcommand) {
2994
2994
short slot ;
2995
2995
2996
2996
/* Sanity check on our arguments */
2997
- z_args = emalloc (argc * sizeof (zval ));
2998
2997
if (argc < 2 ) {
2999
2998
php_error_docref (NULL TSRMLS_CC , E_WARNING ,
3000
2999
"You must pass at least node information as well as at least a command." );
3001
- efree (z_args );
3002
3000
RETURN_FALSE ;
3003
- } else if (zend_get_parameters_array (ht , argc , z_args ) == FAILURE ) {
3001
+ }
3002
+ z_args = emalloc (argc * sizeof (zval ));
3003
+ if (zend_get_parameters_array (ht , argc , z_args ) == FAILURE ) {
3004
3004
php_error_docref (NULL TSRMLS_CC , E_WARNING ,
3005
3005
"Internal PHP error parsing method parameters." );
3006
3006
efree (z_args );
@@ -3022,7 +3022,6 @@ PHP_METHOD(RedisCluster, rawcommand) {
3022
3022
zend_throw_exception (redis_cluster_exception_ce ,
3023
3023
"Unable to send command to the specified node" , 0 TSRMLS_CC );
3024
3024
efree (cmd );
3025
- efree (z_args );
3026
3025
RETURN_FALSE ;
3027
3026
}
3028
3027
You can’t perform that action at this time.
0 commit comments