Bug 717213 - Resource leak revealed by Coverity scan
Summary: Resource leak revealed by Coverity scan
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: xorg-x11-drv-wacom
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Peter Hutterer
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-28 11:38 UTC by Michal Luscon
Modified: 2011-12-06 12:12 UTC (History)
3 users (show)

Fixed In Version: xorg-x11-drv-wacom-0.10.5-11.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 12:12:20 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1588 0 normal SHIPPED_LIVE xorg-x11-drv-wacom and wacomcpl bug fix and enhancement update 2011-12-06 00:38:48 UTC

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


Note You need to log in before you can comment on or make changes to this bug.