Skip to content

Commit

Permalink
Fix leaks in session_cipher get functions
Browse files Browse the repository at this point in the history
  • Loading branch information
dkonigsberg committed May 25, 2019
1 parent 7bd0e5f commit 71954c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/session_cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 71954c5

Please sign in to comment.