From: Imre Deak Date: Tue, 29 Mar 2011 17:25:08 +0000 (+0300) Subject: gpu: pvr: fix error path in PVRSRVOpenDCDeviceKM X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0b6689c00a4a7343e9f1e16e5a9c081aa1c8e46;p=sgx.git gpu: pvr: fix error path in PVRSRVOpenDCDeviceKM Add missing free. Reported-by: Coverity Signed-off-by: Imre Deak Reviewed-by: Pauli Nieminen --- diff --git a/pvr/deviceclass.c b/pvr/deviceclass.c index dd3bcce..d7f3f21 100644 --- a/pvr/deviceclass.c +++ b/pvr/deviceclass.c @@ -587,6 +587,9 @@ err2: module_put(jtbl->owner); psDCInfo->ui32RefCount--; err1: + OSFreeMem(PVRSRV_OS_PAGEABLE_HEAP, sizeof(*psDCPerContextInfo), + psDCPerContextInfo, NULL); + return eError; }