Revert "Coverity Prevent: RESOURCE_LEAK in AccelSetProfileProperty:"
This reverts commit 7333dc2969.
False positive.
This commit is contained in:
@@ -155,7 +155,6 @@ AccelSetProfileProperty(DeviceIntPtr dev, Atom atom,
|
||||
if (!vel)
|
||||
return BadValue;
|
||||
rc = XIPropToInt(val, &nelem, &ptr);
|
||||
xfree(ptr);
|
||||
|
||||
if(checkOnly)
|
||||
{
|
||||
@@ -201,7 +200,6 @@ AccelSetDecelProperty(DeviceIntPtr dev, Atom atom,
|
||||
if (!vel)
|
||||
return BadValue;
|
||||
rc = XIPropToFloat(val, &nelem, &ptr);
|
||||
xfree(ptr);
|
||||
|
||||
if(checkOnly)
|
||||
{
|
||||
@@ -248,7 +246,6 @@ AccelSetAdaptDecelProperty(DeviceIntPtr dev, Atom atom,
|
||||
if (!veloc)
|
||||
return BadValue;
|
||||
rc = XIPropToFloat(val, &nelem, &ptr);
|
||||
xfree(ptr);
|
||||
|
||||
if(checkOnly)
|
||||
{
|
||||
@@ -295,7 +292,6 @@ AccelSetScaleProperty(DeviceIntPtr dev, Atom atom,
|
||||
if (!vel)
|
||||
return BadValue;
|
||||
rc = XIPropToFloat(val, &nelem, &ptr);
|
||||
xfree(ptr);
|
||||
|
||||
if (checkOnly)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user