Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-5041

CID 1365416: Leak in ts_lua plugin

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: Lua, Plugins
    • Labels:
      None

      Description

      *** CID 1365416:  Resource leaks  (RESOURCE_LEAK)
      /plugins/experimental/ts_lua/ts_lua_http.c: 458 in ts_lua_http_set_parent_proxy()
      452         port     = luaL_checkinteger(L, 2);
      453         TSHttpTxnParentProxySet(http_ctx->txnp, target, port);
      454       } else {
      455         return luaL_error(L, "incorrect # of arguments for set_parent_proxy, receiving %d instead of 2", n);
      456       }
      457
      >>>     CID 1365416:  Resource leaks  (RESOURCE_LEAK)
      >>>     Variable "target" going out of scope leaks the storage it points to.
      458       return 0;
      459     }
      460
      461     static int
      462     ts_lua_http_get_parent_selection_url(lua_State *L)
      463     {
      

        Attachments

          Activity

            People

            • Assignee:
              kichan Shu Kit Francis Chan
              Reporter:
              kichan Shu Kit Francis Chan

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m

                  Issue deployment