-
Problem report
-
Resolution: Cannot Reproduce
-
Trivial
-
None
-
3.4.0beta2
-
None
following code may have memory leak.
706 static void process_httptest(DC_HOST *host, zbx_httptest_t *httptest) 707 { ... 860 if (ZBX_POSTTYPE_RAW == db_httpstep.post_type) 861 { 862 db_httpstep.posts = zbx_strdup(NULL, row[5]); 863 substitute_simple_macros(NULL, NULL, NULL, NULL, NULL, host, NULL, NULL, NULL, 864 &db_httpstep.posts, MACRO_TYPE_HTTPTEST_FIELD, NULL, 0); 865 http_substitute_variables(httptest, &db_httpstep.posts); 866 } 867 else 868 db_httpstep.posts = NULL; ... 1114 if (ZBX_POSTTYPE_FORM == httpstep.httpstep->post_type) 1115 zbx_free(httpstep.posts);
By the way, Is this code correct to the following document?
https://www.zabbix.com/documentation/3.4/manual/introduction/whatsnew340#url-encoding_support_in_web_monitoring
Flexible URL-encoding for variables