Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit 71954c5

Browse files
committed
Fix leaks in session_cipher get functions
Fixes #127
1 parent 7bd0e5f commit 71954c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/session_cipher.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -744,6 +744,7 @@ int session_cipher_get_remote_registration_id(session_cipher *cipher, uint32_t *
744744
id_result = session_state_get_remote_registration_id(state);
745745

746746
complete:
747+
SIGNAL_UNREF(record);
747748
if(result >= 0) {
748749
*remote_id = id_result;
749750
}
@@ -784,6 +785,7 @@ int session_cipher_get_session_version(session_cipher *cipher, uint32_t *version
784785
version_result = session_state_get_session_version(state);
785786

786787
complete:
788+
SIGNAL_UNREF(record);
787789
if(result >= 0) {
788790
*version = version_result;
789791
}

0 commit comments

Comments
 (0)