mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Fix memory leak
Detected by cppcheck
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user