telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmdatacalltsy.cpp
changeset 62 8ef833fbf5aa
parent 42 3adadc800673
child 73 70d75957b98f
equal deleted inserted replaced
49:f50f4094acd7 62:8ef833fbf5aa
  1921         }
  1921         }
  1922     else 
  1922     else 
  1923         {
  1923         {
  1924         CAcquireEntry* entry = NULL;
  1924         CAcquireEntry* entry = NULL;
  1925         // Call is owned, add this req handle to acquire list
  1925         // Call is owned, add this req handle to acquire list
  1926 // coverity [resource_leak]
  1926 
  1927 // TRAP macro releases memory while exception caught and trapError != KErrNone
  1927 // TRAP macro releases memory while exception caught and trapError != KErrNone
  1928         TRAP( trapError, ( entry = CAcquireEntry::NewL( aTsyReqHandle ) ) );
  1928         TRAP( trapError, ( entry = CAcquireEntry::NewL( aTsyReqHandle ) ) );
  1929         if ( trapError != KErrNone )
  1929         if ( trapError != KErrNone )
  1930             {
  1930             {
  1931             //error handling. Object cannot be created.
  1931             //error handling. Object cannot be created.
  1933             }
  1933             }
  1934         else if ( NULL != entry )
  1934         else if ( NULL != entry )
  1935             {
  1935             {
  1936             iList->iAcquireList.AddLast( *entry );
  1936             iList->iAcquireList.AddLast( *entry );
  1937             }
  1937             }
       
  1938         // coverity[leaked_storage]
  1938         }
  1939         }
  1939 
  1940 
  1940     return KErrNone;
  1941     return KErrNone;
  1941     }
  1942     }
  1942 
  1943