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

Issue 2357463003: Fix a memory leak found by clang static analyzer. (Closed)

Created:
4 years, 3 months ago by sdefresne
Modified:
4 years, 3 months ago
CC:
chromium-reviews, noyau (Ping after 24h), stkhapugin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a memory leak found by clang static analyzer. The function CFUUIDCreate respect the "Create Rule" for ownership of the returned reference, so it need to be released by a call to CFRelease. BUG=648210 Committed: https://crrev.com/5e5f2f83e084fd34138ed1bf96bf9e39c3f83be2 Cr-Commit-Position: refs/heads/master@{#420020}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M ios/web/navigation/crw_session_controller.mm View 1 chunk +2 lines, -0 lines 2 comments Download

Messages

Total messages: 12 (6 generated)
sdefresne
Please take a look.
4 years, 3 months ago (2016-09-20 16:24:08 UTC) #4
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2357463003/diff/1/ios/web/navigation/crw_session_controller.mm File ios/web/navigation/crw_session_controller.mm (right): https://codereview.chromium.org/2357463003/diff/1/ios/web/navigation/crw_session_controller.mm#newcode846 ios/web/navigation/crw_session_controller.mm:846: CFRelease(uuidRef); How about simply: |return [NSUUID NSUUID].UUIDString;|
4 years, 3 months ago (2016-09-20 21:59:40 UTC) #6
sdefresne
https://codereview.chromium.org/2357463003/diff/1/ios/web/navigation/crw_session_controller.mm File ios/web/navigation/crw_session_controller.mm (right): https://codereview.chromium.org/2357463003/diff/1/ios/web/navigation/crw_session_controller.mm#newcode846 ios/web/navigation/crw_session_controller.mm:846: CFRelease(uuidRef); On 2016/09/20 21:59:40, Eugene But wrote: > How ...
4 years, 3 months ago (2016-09-21 09:19:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2357463003/1
4 years, 3 months ago (2016-09-21 09:19:30 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-21 09:25:11 UTC) #10
commit-bot: I haz the power
4 years, 3 months ago (2016-09-21 09:28:43 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5e5f2f83e084fd34138ed1bf96bf9e39c3f83be2
Cr-Commit-Position: refs/heads/master@{#420020}

Powered by Google App Engine
This is Rietveld 408576698