diff options
author | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-17 04:26:38 +0000 |
---|---|---|
committer | mazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-17 04:26:38 +0000 |
commit | 1f65029c04de2712f17a2e6eed7839949a19fed6 (patch) | |
tree | f920eeb2eba00825d5f18daea123b36c294520c6 | |
parent | 2019966658e19a873744641668e134b92123f1d5 (diff) | |
download | chromium_src-1f65029c04de2712f17a2e6eed7839949a19fed6.zip chromium_src-1f65029c04de2712f17a2e6eed7839949a19fed6.tar.gz chromium_src-1f65029c04de2712f17a2e6eed7839949a19fed6.tar.bz2 |
Fix a heap leak in GetCustomInfo.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2715003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50077 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/app/breakpad_win.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc index c555e39..5577f4c 100644 --- a/chrome/app/breakpad_win.cc +++ b/chrome/app/breakpad_win.cc @@ -148,6 +148,8 @@ google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& dll_path, switch1.set_value(TrimToBreakpadMax(args[1]).c_str()); if (num_args > 2) switch2.set_value(TrimToBreakpadMax(args[2]).c_str()); + // The caller must free the memory allocated for |args|. + ::LocalFree(args); } g_custom_entries->push_back(switch1); |