Changeset 72939 in vbox
- Timestamp:
- Jul 6, 2018 9:16:26 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-all/SecretKeyStore.cpp
r69500 r72939 136 136 return VERR_ALREADY_EXISTS; 137 137 138 SecretKey *pKey = NULL; 138 139 try 139 140 { 140 SecretKey *pKey = new SecretKey(pbKey, cbKey, m_fKeyBufNonPageable);141 pKey = new SecretKey(pbKey, cbKey, m_fKeyBufNonPageable); 141 142 142 143 m_mapSecretKeys.insert(std::make_pair(strKeyId, pKey)); … … 145 146 { 146 147 return rc; 148 } 149 catch (std::bad_alloc) 150 { 151 if (pKey) 152 delete pKey; 153 return VERR_NO_MEMORY; 147 154 } 148 155
Note:
See TracChangeset
for help on using the changeset viewer.