[IOT-3140] Fix roles deinit crash 19/27019/1
authorAleksey Volkov <a.volkov@samsung.com>
Thu, 20 Sep 2018 11:51:24 +0000 (14:51 +0300)
committerAleksey Volkov <a.volkov@samsung.com>
Thu, 20 Sep 2018 14:11:15 +0000 (17:11 +0300)
Change-Id: I27bab5b348a4b0c52319447ce52e9ebdf3755628
Signed-off-by: Aleksey Volkov <a.volkov@samsung.com>
resource/csdk/security/src/rolesresource.c

index 00ba020..40554eb 100644 (file)
@@ -1093,6 +1093,7 @@ OCStackResult DeInitRolesResource(void)
     FreeSymmetricRolesList(gSymmetricRoles);
 
     gRoles = NULL;
+    gSymmetricRoles = NULL;
 
     return res;
 }