| 111 | } |
| 112 | |
| 113 | redis_command::~redis_command() |
| 114 | { |
| 115 | if (argv_ != NULL) { |
| 116 | acl_myfree(argv_); |
| 117 | } |
| 118 | |
| 119 | if (argv_lens_ != NULL) { |
| 120 | acl_myfree(argv_lens_); |
| 121 | } |
| 122 | |
| 123 | delete request_buf_; |
| 124 | delete request_obj_; |
| 125 | |
| 126 | if (pipe_msg_) { |
| 127 | pipe_msg_->unrefer(); |
| 128 | } |
| 129 | |
| 130 | dbuf_->destroy(); |
| 131 | COUNTER_DEC(redis_comand); |
| 132 | } |
| 133 | |
| 134 | void redis_command::set_check_addr(bool on) |
| 135 | { |