From 131c4d19982c12512de0a4c5b84b2e3898b9235e Mon Sep 17 00:00:00 2001 From: Aram Date: Sat, 30 Apr 2016 21:58:59 +0200 Subject: [PATCH] Fixed memory leaks (oops) --- libnfc_crypto1_crack.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libnfc_crypto1_crack.c b/libnfc_crypto1_crack.c index 404447c..1d83841 100644 --- a/libnfc_crypto1_crack.c +++ b/libnfc_crypto1_crack.c @@ -553,6 +553,7 @@ void * update_total_states_thread(void* p){ } if(space){ total_states = craptev1_sizeof_space(space); + craptev1_destroy_space(space); } } } @@ -671,6 +672,8 @@ int main (int argc, const char * argv[]) { fclose(fp); nfc_close(pnd); + space = craptev1_get_space(nonces, 95, uid); + total_states = craptev1_sizeof_space(space); if(!space){ return 1; }