[OTR-dev] [PATCH 6/9] Free the last saved message.
Andreas Schlick
ninox+otr at posteo.net
Wed Oct 22 14:39:24 EDT 2014
---
src/message.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/message.c b/src/message.c
index 600800b..68ee9e7 100644
--- a/src/message.c
+++ b/src/message.c
@@ -312,6 +312,7 @@ gcry_error_t otrl_message_sending(OtrlUserState us,
context, NULL, gcry_error(GPG_ERR_NO_ERROR));
}
+ gcry_free(context->context_priv->lastmessage);
context->context_priv->lastmessage =
gcry_malloc_secure(strlen(original_msg) + 1);
if (context->context_priv->lastmessage) {
--
2.1.2
More information about the OTR-dev
mailing list