From fee78e5119522ae4bc6398b62708dddc84bbe9ff Mon Sep 17 00:00:00 2001 From: durk Date: Sat, 30 Sep 2006 05:17:45 +0000 Subject: [PATCH] Fixed a potentially tiny memory leak. --- src/Main/fg_io.cxx | 1 + 1 file changed, 1 insertion(+) 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" ) { -- 2.39.5