Change-Id: I610ddca37f60c437d0ba2c029c0c3b7760fd28ee
Signed-off-by: Susnata Sovalin <s.sovalin@samsung.com>
auth_plugin_handle_s *auth_plugin = (auth_plugin_handle_s*)
calloc(1, sizeof(auth_plugin_handle_s));
- RET_IF_FAIL(auth_plugin != NULL, -1);
+ if (auth_plugin == NULL){
+ _ERR("Memory Allocation error");
+ dlclose(mod);
+ return -1;
+ }
+
auth_plugin->conn = createConnectionHandle(mod);
auth_plugin->assrt = createAssertionHandle(mod);
auth_plugin->hash = createHashHandle(mod);
getRegRespInfo->regAssertion->attFull->cert->len = cert_len;
SAFE_DELETE(cert_raw);
+ SAFE_DELETE(keyId_b64_enc);
TlvEncodable<RegisterResp> encodableRegResp(getRegRespInfo);
Buffer *getRegRespInfoBuff = NULL;