Uploaded image for project: 'Snowstorm'
  1. Snowstorm
  2. STORM-1263

memory leak in LLTranslate::getTranslateUrl

    XMLWordPrintableJSON

    Details

    • Type: Defect
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Sprint 16
    • Labels:
      None
    • Environment:
      all
    • QA Status:
      Fixed - On Review
    • Approvals:
      Code Review, Product Owner
    • Test Plan:
      Hide

      Verify that basic translation still works:

      • Enable translation in nearby chat floater and verify the translation of several strings is broadcast in chat
      • Change "translate to" language in preferences > chat and and verify the translation of several strings is broadcast in chat
      Show
      Verify that basic translation still works: Enable translation in nearby chat floater and verify the translation of several strings is broadcast in chat Change "translate to" language in preferences > chat and and verify the translation of several strings is broadcast in chat

      Description

      curl_escape() returns a char *. When one is done with the C-string pointed to by that, one has to call curl_free() on the pointer. In LLTranslate::getTranslateUrl() this doesn't happen, so the C-string is leaked.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              boroondas.gupte Boroondas Gupte
              Extended Group Visibility:
              jira-users
              Prod Owner Approved:
              Grumpity ProductEngine
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: