- fix memory leak
authorMichael Schroeder <mls@suse.de>
Tue, 3 Aug 2010 13:20:59 +0000 (15:20 +0200)
committerMichael Schroeder <mls@suse.de>
Tue, 3 Aug 2010 13:20:59 +0000 (15:20 +0200)
zypp/media/MediaMultiCurl.cc

index cb1f70b..a9b0d3d 100644 (file)
@@ -392,6 +392,9 @@ multifetchworker::~multifetchworker()
       close(_dnspipe);
       _dnspipe = -1;
     }
+  // the destructor in MediaCurl doesn't call disconnect() if
+  // the media is not attached, so we do it here manually
+  disconnectFrom();
 }
 
 static inline bool env_isset(string name)