Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > cf85294942e7fb38d15683bde5b3c1fc > files > 9

libgcrypt-1.5.4-5.4.mga5.src.rpm

From 312101e1f266314b4391fcdbe11c03de5c147e38 Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Thu, 29 Jun 2017 12:40:19 +0900
Subject: [PATCH] rsa: More fix.

* cipher/rsa.c (secret): Free R.

--

Fixes-commit: a9f612def801c8145d551d995475e5d51a4c988c
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
---
 cipher/rsa.c | 1 +
 1 file changed, 1 insertion(+)

Index: libgcrypt11-1.5.3/cipher/rsa.c
===================================================================
--- libgcrypt11-1.5.3.orig/cipher/rsa.c	2017-07-03 08:21:25.889474882 -0400
+++ libgcrypt11-1.5.3/cipher/rsa.c	2017-07-03 08:21:25.873474883 -0400
@@ -747,6 +747,7 @@ secret(gcry_mpi_t output, gcry_mpi_t inp
       mpi_mul ( h, h, skey->p );
       mpi_add ( output, m1, h );
 
+      mpi_free ( r );
       mpi_free ( D_blind );
       mpi_free ( h );
       mpi_free ( m1 );