Browse Source

minor memory leak

rdb 13 years ago
parent
commit
232821a0b1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      direct/src/plugin/p3dCert.cxx

+ 1 - 0
direct/src/plugin/p3dCert.cxx

@@ -109,6 +109,7 @@ wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PWSTR pCmdLine, int nCmdS
 
   wstring cert_filename (argv[0]);
   wstring cert_dir (argv[1]);
+  LocalFree(argv);
 
   AuthDialog *dialog = new AuthDialog(cert_filename, cert_dir);
   dialog->show();