fixed potential memory leak in createDBRDD ()

This commit is contained in:
Jeff Hill
2009-05-13 21:14:17 +00:00
parent 8d245ba595
commit 7653623e72
+2
View File
@@ -740,6 +740,7 @@ static caStatus createDBRDD ( unsigned dbrType,
caStatus status = convertContainerMemberToAtomic (
*pDescRet, gddAppType_value, elemCount );
if ( status != S_cas_success ) {
pDescRet->unreference ();
return status;
}
@@ -750,6 +751,7 @@ static caStatus createDBRDD ( unsigned dbrType,
status = convertContainerMemberToAtomic (
*pDescRet, gddAppType_enums, MAX_ENUM_STATES );
if ( status != S_cas_success ) {
pDescRet->unreference ();
return status;
}
}