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)
|
if (!vel)
|
||||||
return BadValue;
|
return BadValue;
|
||||||
rc = XIPropToInt(val, &nelem, &ptr);
|
rc = XIPropToInt(val, &nelem, &ptr);
|
||||||
xfree(ptr);
|
|
||||||
|
|
||||||
if(checkOnly)
|
if(checkOnly)
|
||||||
{
|
{
|
||||||
@@ -201,7 +200,6 @@ AccelSetDecelProperty(DeviceIntPtr dev, Atom atom,
|
|||||||
if (!vel)
|
if (!vel)
|
||||||
return BadValue;
|
return BadValue;
|
||||||
rc = XIPropToFloat(val, &nelem, &ptr);
|
rc = XIPropToFloat(val, &nelem, &ptr);
|
||||||
xfree(ptr);
|
|
||||||
|
|
||||||
if(checkOnly)
|
if(checkOnly)
|
||||||
{
|
{
|
||||||
@@ -248,7 +246,6 @@ AccelSetAdaptDecelProperty(DeviceIntPtr dev, Atom atom,
|
|||||||
if (!veloc)
|
if (!veloc)
|
||||||
return BadValue;
|
return BadValue;
|
||||||
rc = XIPropToFloat(val, &nelem, &ptr);
|
rc = XIPropToFloat(val, &nelem, &ptr);
|
||||||
xfree(ptr);
|
|
||||||
|
|
||||||
if(checkOnly)
|
if(checkOnly)
|
||||||
{
|
{
|
||||||
@@ -295,7 +292,6 @@ AccelSetScaleProperty(DeviceIntPtr dev, Atom atom,
|
|||||||
if (!vel)
|
if (!vel)
|
||||||
return BadValue;
|
return BadValue;
|
||||||
rc = XIPropToFloat(val, &nelem, &ptr);
|
rc = XIPropToFloat(val, &nelem, &ptr);
|
||||||
xfree(ptr);
|
|
||||||
|
|
||||||
if (checkOnly)
|
if (checkOnly)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user