gpu: pvr: fix error path in PVRSRVOpenDCDeviceKM
authorImre Deak <imre.deak@nokia.com>
Tue, 29 Mar 2011 17:25:08 +0000 (20:25 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 20 May 2012 18:43:04 +0000 (21:43 +0300)
Add missing free.

Reported-by: Coverity
Signed-off-by: Imre Deak <imre.deak@nokia.com>
Reviewed-by: Pauli Nieminen <ext-pauli.nieminen@nokia.com>
pvr/deviceclass.c

index dd3bcce..d7f3f21 100644 (file)
@@ -587,6 +587,9 @@ err2:
        module_put(jtbl->owner);
        psDCInfo->ui32RefCount--;
 err1:
+       OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(*psDCPerContextInfo),
+                 psDCPerContextInfo, NULL);
+
        return eError;
 }