]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - bigint/bigint.c
switching uart header file
[avr-crypto-lib.git] / bigint / bigint.c
index dd6e06718ece342123a3316f9f0fe0edf76e4d44..6d77cdf802231412bf1f4211f6ff68c60d1a1b31 100644 (file)
@@ -1,7 +1,7 @@
 /* bigint.c */
 /*
     This file is part of the ARM-Crypto-Lib.
-    Copyright (C) 2008  Daniel Otte (daniel.otte@rub.de)
+    Copyright (C) 2006-2015 Daniel Otte (bg@nerilex.org)
 
     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -61,7 +61,7 @@
 
 #if DEBUG
 #include "cli.h"
-#include "uart_i.h"
+#include "uart.h"
 #include "bigint_io.h"
 #endif
 
@@ -982,6 +982,16 @@ void bigint_gcdext(bigint_t *gcd, bigint_t *a, bigint_t *b, const bigint_t *x, c
         if(b){
                 bigint_copy(b, &d_);
         }
+
+        FREE(d_w);
+        FREE(b_w);
+        FREE(c_w);
+        FREE(a_w);
+     FREE(v_w);
+     FREE(u_w);
+     FREE(y_w);
+     FREE(x_w);
+     FREE(g_w);
 }
 
 /******************************************************************************/