[Webkit-unassigned] [Bug 151881] New: TestNetscapePlugIn: Fix leaks found by static analyzer

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 4 13:21:07 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=151881

            Bug ID: 151881
           Summary: TestNetscapePlugIn: Fix leaks found by static analyzer
    Classification: Unclassified
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: lforschler at apple.com

Fix the following leaks found by the static analyzer in the TestNetscapePlugIn project:

    DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'path'
            return false;
                   ^~~~~
    DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'target'
            return false;
                   ^~~~~
    DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:808:16: warning: Potential leak of memory pointed to by 'url'
            return false;
                   ^~~~~

The toCString() method returns malloc()ed memory, and the early returns in testPostURLFile() don't call free() on them.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151204/a29eff44/attachment-0001.html>


More information about the webkit-unassigned mailing list