diff options
author | TheJackiMonster <thejackimonster@gmail.com> | 2021-03-29 23:52:28 +0200 |
---|---|---|
committer | TheJackiMonster <thejackimonster@gmail.com> | 2021-03-29 23:52:28 +0200 |
commit | d8b32bc60d26a8a30b71530af0bd3e9e037e073b (patch) | |
tree | e62d5396fdf79faec5c97e55a75ee0ec4fe8fc3b /src/messenger/messenger_api_room.h | |
parent | 29be7985d06482beec4304b0f2eb57f23b6ec84d (diff) | |
download | gnunet-d8b32bc60d26a8a30b71530af0bd3e9e037e073b.tar.gz gnunet-d8b32bc60d26a8a30b71530af0bd3e9e037e073b.zip |
-fixed multiple leaks in messenger
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/messenger/messenger_api_room.h')
-rwxr-xr-x[-rw-r--r--] | src/messenger/messenger_api_room.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/messenger/messenger_api_room.h b/src/messenger/messenger_api_room.h index 9455fd43b..eb41cf740 100644..100755 --- a/src/messenger/messenger_api_room.h +++ b/src/messenger/messenger_api_room.h | |||
@@ -100,12 +100,16 @@ get_room_sender (const struct GNUNET_MESSENGER_Room *room, const struct GNUNET_H | |||
100 | * Handles a <i>message</i> with a given <i>hash</i> in a <i>room</i> for the client API to update | 100 | * Handles a <i>message</i> with a given <i>hash</i> in a <i>room</i> for the client API to update |
101 | * members and its information. The function also stores the message in map locally for access afterwards. | 101 | * members and its information. The function also stores the message in map locally for access afterwards. |
102 | * | 102 | * |
103 | * The contact of the message's sender could be updated or even created. It may not be freed or destroyed though! | ||
104 | * (The contact may still be in use for old messages...) | ||
105 | * | ||
103 | * @param[in/out] room Room | 106 | * @param[in/out] room Room |
104 | * @param[in/out] sender Contact of sender | 107 | * @param[in/out] sender Contact of sender |
105 | * @param[in] message Message | 108 | * @param[in] message Message |
106 | * @param[in] hash Hash of message | 109 | * @param[in] hash Hash of message |
110 | * @return Contact of sender | ||
107 | */ | 111 | */ |
108 | void | 112 | struct GNUNET_MESSENGER_Contact* |
109 | handle_room_message (struct GNUNET_MESSENGER_Room *room, struct GNUNET_MESSENGER_Contact *sender, | 113 | handle_room_message (struct GNUNET_MESSENGER_Room *room, struct GNUNET_MESSENGER_Contact *sender, |
110 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); | 114 | const struct GNUNET_MESSENGER_Message *message, const struct GNUNET_HashCode *hash); |
111 | 115 | ||