Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12467

3.4.0beta2 http monitoring code may have memory leak

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Cannot Reproduce
    • Icon: Trivial Trivial
    • None
    • 3.4.0beta2
    • Server (S)
    • 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

            Unassigned Unassigned
            daiki.matsuda@miraclelinux.com MATSUDA Daiki
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: