summaryrefslogtreecommitdiffstats
path: root/courgette/courgette_tool.cc
diff options
context:
space:
mode:
authorsra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 00:47:49 +0000
committersra@chromium.org <sra@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-30 00:47:49 +0000
commit70d56be631ab6616cd7661468df6ba91c5821193 (patch)
tree665b7bf1850c14bf0f0eb5148dc4557f159f6687 /courgette/courgette_tool.cc
parent1869411883c8ac422315fa702e3403df95bb0a3f (diff)
downloadchromium_src-70d56be631ab6616cd7661468df6ba91c5821193.zip
chromium_src-70d56be631ab6616cd7661468df6ba91c5821193.tar.gz
chromium_src-70d56be631ab6616cd7661468df6ba91c5821193.tar.bz2
Fix leaks found by Coverity Prevent.
BUG=none TEST=none Review URL: http://codereview.chromium.org/115947 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/courgette_tool.cc')
-rw-r--r--courgette/courgette_tool.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/courgette/courgette_tool.cc b/courgette/courgette_tool.cc
index c07f2da..96a5af4 100644
--- a/courgette/courgette_tool.cc
+++ b/courgette/courgette_tool.cc
@@ -207,7 +207,7 @@ void DisassembleAdjustDiff(const std::wstring& model_file,
courgette::WriteEncodedProgram(encoded_model, &model_sinks);
if (write_model_status != courgette::C_OK)
Problem("Can't serialize encoded model.");
- courgette::DeleteEncodedProgram(encoded_program);
+ courgette::DeleteEncodedProgram(encoded_model);
for (int i = 0; ; ++i) {
courgette::SinkStream* old_stream = model_sinks.stream(i);