From fa0d72cbafd736791220986f636a515f6bad649c Mon Sep 17 00:00:00 2001 From: Nick Law Date: Tue, 20 Nov 2018 00:15:47 +0000 Subject: [PATCH] Memory leak:b in pass.c --- src/pass.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pass.c b/src/pass.c index 161e397..8b77de7 100644 --- a/src/pass.c +++ b/src/pass.c @@ -445,6 +445,7 @@ int nwipe_static_verify( NWIPE_METHOD_SIGNATURE, nwipe_pattern_t* pattern ) { nwipe_perror( errno, __FUNCTION__, "malloc" ); nwipe_log( NWIPE_LOG_FATAL, "Unable to allocate memory for the pattern buffer." ); + free(b); return -1; }