From: durk Date: Sat, 30 Sep 2006 05:17:45 +0000 (+0000) Subject: Fixed a potentially tiny memory leak. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fee78e5119522ae4bc6398b62708dddc84bbe9ff;p=flightgear.git Fixed a potentially tiny memory leak. --- diff --git a/src/Main/fg_io.cxx b/src/Main/fg_io.cxx index f65e952f5..134087885 100644 --- a/src/Main/fg_io.cxx +++ b/src/Main/fg_io.cxx @@ -114,6 +114,7 @@ FGIO::parse_port_config( const string& config ) SG_LOG( SG_IO, SG_ALERT, "Usage: --atcsim=[no-]pedals," << "input0_config,input1_config," << "output0_config,output1_config,file.nas" ); + delete atcsim; return NULL; } if ( tokens[1] == "no-pedals" ) {