equal
deleted
inserted
replaced
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 |