memory leak in many jni calls (NewString etc.)

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 5.0u2
    • Affects Version/s: 5.0
    • Component/s: deploy
    • b04
    • sparc
    • solaris_10

        In deploy/src/plugin/solaris/nscore/remotejni.cpp, there are several places where call malloc but don't call free. The affected methods are:

        jni_CallStaticVoidMethodV
        DEFINE_CAPTURESCALARARRAYELEMENTS
        DEFINE_SETSCALARARRAYELEMENTS
        jni_NewString
        jni_NewStringUTF
        jni_CSecurityContextImplies

        When doing liveconnect call, mozilla will call jni_NewString to convert js string to java string, sometimes, the js string is very large, it will cause serious mozilla memory growth.

        This problem also exists in 1.4.2.

              Assignee:
              Mike Lei (Inactive)
              Reporter:
              J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: