Merge pull request #271 from PartialVolume/Fix_memory_leak

Fix memory leak
This commit is contained in:
PartialVolume
2020-04-23 21:53:59 +00:00
committed by GitHub

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;
}