Closed Bug 1254507 Opened 9 years ago Closed 9 years ago

ASAN Leak in webrtc::DesktopDeviceInfoImpl::RefreshApplicationList()

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: gcp, Unassigned)

Details

Attachments

(2 files)

Attached file leak.txt
Current m-c with ASAN running the dom/media mochitests: ==19331==ERROR: LeakSanitizer: detected memory leaks Direct leak of 616 byte(s) in 20 object(s) allocated from: #0 0x4e7080 in operator new[](unsigned long) /home/morbo/svn/llvm/projects/compiler-rt/lib/asan/asan_new_delete.cc:64 #1 0x7f0f4eba242b in webrtc::SetStringMember(char**, char const*) /home/morbo/hg/mozilla-central/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_device_info.cc:27:18 #2 0x7f0f4eba242b in webrtc::DesktopApplication::setProcessAppName(char const*) /home/morbo/hg/mozilla-central/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_device_info.cc:114 #3 0x7f0f4ebb5f6b in webrtc::DesktopDeviceInfoX11::InitializeApplicationList() /home/morbo/hg/mozilla-central/media/webrtc/trunk/webrtc/modules/desktop_capture/x11/desktop_device_info_x11.cc:131:7 #4 0x7f0f4eba341b in webrtc::DesktopDeviceInfoImpl::RefreshApplicationList() /home/morbo/hg/mozilla-central/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_device_info.cc:287:3 #5 0x7f0f4eba341b in webrtc::DesktopDeviceInfoImpl::Refresh() /home/morbo/hg/mozilla-central/media/webrtc/trunk/webrtc/modules/desktop_capture/desktop_device_info.cc:232 #6 0x7f0f4ebbd424 in webrtc::ScreenDeviceInfoImpl::Refresh() /home/morbo/hg/mozilla-central/media/webrtc/trunk/webrtc/video_engine/desktop_capture_impl.cc:47:3 #7 0x7f0f4ec2452e in webrtc::ViEInputManager::NumberOfCaptureDevices() /home/morbo/hg/mozilla-central/media/webrtc/trunk/webrtc/video_engine/vie_input_manager.cc:63:3
Not the first Leak problem with that code: https://bugzilla.mozilla.org/show_bug.cgi?id=1041369#c33
Comment on attachment 8727811 [details] MozReview Request: Bug 1254507 - Fix leak in WebRTC DesktopApplication class. r?jesup https://reviewboard.mozilla.org/r/38651/#review35347
Attachment #8727811 - Flags: review?(rjesup) → review+
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: