diff options
| author | liuwentan <[email protected]> | 2023-03-15 11:36:54 +0800 |
|---|---|---|
| committer | liuwentan <[email protected]> | 2023-03-15 11:36:54 +0800 |
| commit | 90d0764845d762505208196d562db135b0acb96f (patch) | |
| tree | ac8b56c20b85bfefc2d413cc2761abc930da9cf0 /tools | |
| parent | 33c9c10467b24a71766b8e663cdea8865a8334fc (diff) | |
item_uthash -> item_rcu && add foreign cont dir API
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/maat_redis_tool.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/maat_redis_tool.cpp b/tools/maat_redis_tool.cpp index 7e7dd35..9c3b085 100644 --- a/tools/maat_redis_tool.cpp +++ b/tools/maat_redis_tool.cpp @@ -231,7 +231,8 @@ int make_serial_rule(const char *table_name, const char *line, void *u_para) maat_cmd_set_serial_rule(s_rule + line_idx, MAAT_OP_ADD, rule_id, table_name, buff, absolute_expire_time); line_idx++; - FREE(str1); + + FREE(buff); return 0; } @@ -308,7 +309,8 @@ int main(int argc, char * argv[]) } ret = json2iris(json_buff, json_file, c, tmp_iris_path, sizeof(tmp_iris_path), NULL, NULL, logger); - if (ret < 0) { + FREE(json_buff); + if (ret < 0) { printf("Invalid json format.\n"); } |
