diff -r 81c9bee26a45 -r 3267d9ea3e98 locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp --- a/locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp Tue Jul 13 12:25:28 2010 +0100 +++ b/locationrequestmgmt/networkrequesthandler/src/privacyandlocationrequesthandler.cpp Wed Sep 08 15:16:57 2010 +0100 @@ -312,7 +312,12 @@ if (fsm) { // Add the state machine to the buffer. - iFsmArray.Append(fsm); + TInt err = iFsmArray.Append(fsm); + if( err != KErrNone ) + { + delete fsm; + return NULL; + } iNumActiveSessions++; // conceptually, a session starts when a Fsm is created for it