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

memory leak in LLTranslate::getTranslateUrl

    XMLWordPrintableJSON

Details

    • Defect
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Sprint 16
    • None
    • all
    • Fixed - On Review
    • Code Review, Product Owner
    • 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

            Unassigned Unassigned
            boroondas.gupte Boroondas Gupte
            jira-users
            Grumpity ProductEngine Grumpity ProductEngine
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: