ENGINE-545: Fixed internal double-free, but the question remains of from where free_Sync_state should be called. sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Fri, 03 May 2019 15:18:05 +0200
branchsync
changeset 36168229562ff2a1
parent 3604 4bf5759ea073
child 3617 3d6f394c9a6c
ENGINE-545: Fixed internal double-free, but the question remains of from where free_Sync_state should be called.
sync/gen_message_func.ysl2
     1.1 --- a/sync/gen_message_func.ysl2	Thu May 02 11:23:41 2019 +0200
     1.2 +++ b/sync/gen_message_func.ysl2	Fri May 03 15:18:05 2019 +0200
     1.3 @@ -117,6 +117,8 @@
     1.4      free(session->«yml:lcase(@name)»_state.common.signature_fpr);
     1.5      free_stringlist(session->own_«yml:lcase(@name)»_state.own_keys);
     1.6      free_identity_list(session->own_«yml:lcase(@name)»_state.own_identities);
     1.7 +    session->own_«yml:lcase(@name)»_state.own_keys = NULL;
     1.8 +    session->own_«yml:lcase(@name)»_state.own_identities = NULL;
     1.9  
    1.10  ||
    1.11  for "fsm"