BUG#: 8469
authors.kodali <s.kodali>
Thu, 2 Apr 2009 12:11:07 +0000 (12:11 +0000)
committers.kodali <s.kodali>
Thu, 2 Apr 2009 12:11:07 +0000 (12:11 +0000)
TITLE: cimserver command exits before freeing resources on start-up error

src/Server/cimserver.cpp

index f2ffb269396b6db6cb8c754110aedfc7debabeb9..2c9a206aaa93d1e6b959e6ad177e19b548698f4c 100644 (file)
@@ -1194,13 +1194,14 @@ int CIMServerProcess::cimserver_run(
             parms);
         cerr << MessageLoader::getMessage(parms) << endl;
 
+        deleteCIMServer();
+
         //
         // notify parent process (if there is a parent process) to terminate
         //
         if (daemonOption)
             _cimServerProcess->notify_parent(1);
 
-        deleteCIMServer();
         return 1;
     }