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

Issue 1308953007: Fix two memory leaks in SecureSocket. (Closed)

Created:
5 years, 3 months ago by Bill Hesse
Modified:
5 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Ivan Posva
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove change to comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -4 lines) Patch
M runtime/bin/secure_socket.cc View 4 chunks +21 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
Bill Hesse
Includes a change to the comment documenting Dart_NewWeakPersistentHandle. It cannot return an error handle, since ...
5 years, 3 months ago (2015-09-02 14:52:02 UTC) #2
Søren Gjesse
lgtm https://codereview.chromium.org/1308953007/diff/1/runtime/bin/secure_socket.cc File runtime/bin/secure_socket.cc (left): https://codereview.chromium.org/1308953007/diff/1/runtime/bin/secure_socket.cc#oldcode317 runtime/bin/secure_socket.cc:317: // when the object is GC'd. Also free ...
5 years, 3 months ago (2015-09-02 16:24:31 UTC) #4
Bill Hesse
Committed patchset #2 (id:20001) manually as 2a091441a130e599af0606af4a8b3451435e52f5 (presubmit successful).
5 years, 3 months ago (2015-09-03 08:43:22 UTC) #5
Bill Hesse
5 years, 3 months ago (2015-09-03 08:47:00 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1308953007/diff/1/runtime/bin/secure_socket.cc
File runtime/bin/secure_socket.cc (left):

https://codereview.chromium.org/1308953007/diff/1/runtime/bin/secure_socket.c...
runtime/bin/secure_socket.cc:317: // when the object is GC'd.  Also free the
alpn_select_cb data pointer,
On 2015/09/02 16:24:31, Søren Gjesse wrote:
> How about the alpn_select_cb data pointer mentioned in this TODO as well?

The TODO is moved below.  The issue is harder to resolve, since it uses an
internal member of the struct, and also should free it when it is reset to a
different value (but not the same value).  It is more important to get this
major leak fixed.

https://codereview.chromium.org/1308953007/diff/1/runtime/include/dart_api.h
File runtime/include/dart_api.h (right):

https://codereview.chromium.org/1308953007/diff/1/runtime/include/dart_api.h#...
runtime/include/dart_api.h:479: Returns NULL if and only if the callback is
NULL.
On 2015/09/02 16:24:31, Søren Gjesse wrote:
> Please check this with the VM team.

They haven't looked at it, so removing it.

Powered by Google App Engine
This is Rietveld 408576698