[haiku-commits] Change in haiku[master]: preferences/sounds: Fix mismatching malloc/delete

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 21 Sep 2019 11:05:45 +0000

From Murai Takashi <tmurai01@xxxxxxxxx>:

Murai Takashi has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/1884 ;)


Change subject: preferences/sounds: Fix mismatching malloc/delete
......................................................................

preferences/sounds: Fix mismatching malloc/delete

fType is allocated by strdup() in SetType(), buf freed by delete.
Pointed out by LGTM.

Change-Id: Id9e900863bf6921fd29f2c8abbd21da182f9055c
---
M src/preferences/sounds/HEventList.cpp
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/84/1884/1
--
To view, visit https://review.haiku-os.org/c/haiku/+/1884
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Id9e900863bf6921fd29f2c8abbd21da182f9055c
Gerrit-Change-Number: 1884
Gerrit-PatchSet: 1
Gerrit-Owner: Murai Takashi <tmurai01@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: preferences/sounds: Fix mismatching malloc/delete - Gerrit