Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Issue 1281003003: Subzero: Fix a memory leak. (Closed)

Created:
5 years, 4 months ago by Jim Stichnoth
Modified:
5 years, 4 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Subzero: Fix a memory leak. The problem was that Translator and subclasses need to have virtual destructors since they are used as unique_ptr<>. As a result, only the Translator base class destructor was being invoked. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4290 TEST= make -f Makefile.standalone ASAN=1 check-lit R=ascull@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=f4fbf7fdff5a40c54a932073209ae9c224d729e3

Patch Set 1 #

Patch Set 2 : Use default instead of {} #

Patch Set 3 : Use default instead of {} #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -5 lines) Patch
M src/IceConverter.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/IceConverter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/IceTranslator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/IceTranslator.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M src/PNaClTranslator.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Jim Stichnoth
Use default instead of {}
5 years, 4 months ago (2015-08-07 23:13:43 UTC) #1
Jim Stichnoth
5 years, 4 months ago (2015-08-07 23:17:38 UTC) #3
ascull
On 2015/08/07 23:17:38, stichnot wrote: lgtm
5 years, 4 months ago (2015-08-07 23:27:24 UTC) #4
Jim Stichnoth
5 years, 4 months ago (2015-08-08 15:37:16 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
f4fbf7fdff5a40c54a932073209ae9c224d729e3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698