To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=106477
                 Issue #|106477
                 Summary|xmerge: XMergeFilter.cpp: memory leak
               Component|xml
                 Version|DEV300m63
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mba
             Reported by|dcb314





------- Additional comments from dcb...@openoffice.org Fri Oct 30 10:54:04 
+0000 2009 -------
For source code file xmerge/source/activesync/XMergeFilter.cpp, there is
a memory leak for local variable szJavaHome around line 380. 

The source code is

        lRet = ::RegOpenKeyEx(hKey, _T(szCurrentJava), 0, KEY_READ, &hDataKey);
        if (lRet != ERROR_SUCCESS)
        {
                RegCloseKey(hKey);
                return NULL;
        }

Suggest new code

        lRet = ::RegOpenKeyEx(hKey, _T(szCurrentJava), 0, KEY_READ, &hDataKey);
        if (lRet != ERROR_SUCCESS)
        {
                RegCloseKey(hKey);
                delete [] szJavaHome;
                return NULL;
        }

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@xml.openoffice.org
For additional commands, e-mail: issues-h...@xml.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to