Fix memory leak

Detected by cppcheck
This commit is contained in:
PartialVolume
2020-04-23 22:47:50 +01:00
parent d76868617a
commit 33690b9e37

View File

@@ -145,6 +145,7 @@ int main( int argc, char** argv )
nwipe_perror( errno, __FUNCTION__, "open" );
nwipe_log( NWIPE_LOG_FATAL, "Unable to open entropy source %s.", NWIPE_KNOB_ENTROPY );
cleanup();
free( c2 );
return errno;
}