diff --git a/src/session_cipher.c b/src/session_cipher.c index 3f5dcab9..f7055094 100644 --- a/src/session_cipher.c +++ b/src/session_cipher.c @@ -744,6 +744,7 @@ int session_cipher_get_remote_registration_id(session_cipher *cipher, uint32_t * id_result = session_state_get_remote_registration_id(state); complete: + SIGNAL_UNREF(record); if(result >= 0) { *remote_id = id_result; } @@ -784,6 +785,7 @@ int session_cipher_get_session_version(session_cipher *cipher, uint32_t *version version_result = session_state_get_session_version(state); complete: + SIGNAL_UNREF(record); if(result >= 0) { *version = version_result; }