[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/icecream/icecream/client
From:       Stephan Kulow <coolo () kde ! org>
Date:       2004-08-29 15:23:58
Message-ID: 20040829152358.607CC1CC3 () office ! kde ! org
[Download RAW message or body]

CVS commit by coolo: 

fixing (rather unlikely) memory corruption in the client found by Andreas Schwab
CCMAIL: schwab@suse.de


  M +3 -1      main.cpp   1.36


--- kdenonbeta/icecream/icecream/client/main.cpp  #1.35:1.36
@@ -208,11 +208,13 @@ int main(int argc, char **argv)
     serv = new Service( ucs->hostname, ucs->port );
     MsgChannel *scheduler = serv->channel();
-    delete ucs;
     if ( ! scheduler ) {
         log_error() << "no scheduler found at " << ucs->hostname << ":" << ucs->port << endl;
         delete serv;
+        delete ucs;
         return build_local( job, 0 );
     }
 
+    delete ucs;
+
     int ret;
     if ( local ) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic