Bug 717213

Summary: Resource leak revealed by Coverity scan
Product: Red Hat Enterprise Linux 6 Reporter: Michal Luscon <mluscon>
Component: xorg-x11-drv-wacomAssignee: Peter Hutterer <peter.hutterer>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1CC: mboisver, ovasik, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: xorg-x11-drv-wacom-0.10.5-11.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 12:12:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michal Luscon 2011-06-28 11:38:12 UTC
Description of problem:

xf86-input-wacom-0.10.5/tools/xsetwacom.c:1448: var_assign: Assigning: "data" =  storage returned from "calloc(sizeof (long) /*8*/, 256UL)".
xf86-input-wacom-0.10.5/tools/xsetwacom.c:1483: leaked_storage: Variable "data" going out of scope leaks the storage it points to.

Version-Release number of selected component (if applicable):
0.10.5-9

Additional info:

This defect was probably introduced by Red Hat patch.

Comment 2 Peter Hutterer 2011-06-30 23:18:47 UTC
Simple fix → devel ack

Actual impact of this leak is negligible as xsetwacom exits after this function call anyway.

Comment 3 RHEL Program Management 2011-06-30 23:19:58 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 6 Peter Hutterer 2011-07-13 01:19:25 UTC
MODIFIED

xorg-x11-drv-wacom-0.10.5-11.el6 is available in brew

Comment 12 errata-xmlrpc 2011-12-06 12:12:20 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1588.html