summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libntru/files/05-libntru-0.2-fix-memory-leak.patch')
-rw-r--r--dev-libs/libntru/files/05-libntru-0.2-fix-memory-leak.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/dev-libs/libntru/files/05-libntru-0.2-fix-memory-leak.patch b/dev-libs/libntru/files/05-libntru-0.2-fix-memory-leak.patch
deleted file mode 100644
index 843c39c779d4..000000000000
--- a/dev-libs/libntru/files/05-libntru-0.2-fix-memory-leak.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-From eada223e688d0777f852ca827a375121b375def3 Mon Sep 17 00:00:00 2001
-From: gga01 <gga01@users.noreply.github.com>
-Date: Wed, 16 Apr 2014 00:57:01 +0300
-Subject: [PATCH] Fix memory leak (issue #7)
-
----
- src/ntru.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/ntru.c b/src/ntru.c
-index b7513cb..73f0449 100644
---- a/src/ntru.c
-+++ b/src/ntru.c
-@@ -360,7 +360,7 @@ uint8_t ntru_encrypt_det(uint8_t *msg, uint16_t msg_len, NtruEncPubKey *pub, Ntr
- rand_state = NULL;
- NtruRandContext rand_ctx = {seed, seed_len, &rand_state};
- uint8_t result = ntru_encrypt_internal(msg, msg_len, pub, params, rng, &rand_ctx, enc);
-- if (rand_state == NULL)
-+ if (rand_state != NULL)
- free(rand_state);
- return result;
- }
---
-1.9.1