summaryrefslogtreecommitdiff
path: root/packages/ctorrent/files/crash.patch
blob: 70ef72e6cdeb8168ba347f825d7272362a68bd7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -ur ctorrent/btcontent.cpp ctorrent.new/btcontent.cpp
--- ctorrent/btcontent.cpp	2004-09-09 00:10:51.000000000 +0100
+++ ctorrent.new/btcontent.cpp	2005-02-03 01:32:24.000000000 +0000
@@ -226,6 +226,7 @@
   if( m_btfiles.BuildFromMI(b, flen, saveas) < 0) ERR_RETURN();
 
   delete []b;
+  b = (char *)0;
   PrintOut();
   
   if( arg_flg_exam_only ) return 0;
diff -ur ctorrent/iplist.cpp ctorrent.new/iplist.cpp
--- ctorrent/iplist.cpp	2004-09-09 00:10:51.000000000 +0100
+++ ctorrent.new/iplist.cpp	2005-02-08 13:02:45.000000000 +0000
@@ -8,8 +8,8 @@
   IPLIST *node = ipl_head;
   for(; ipl_head;){
     node = ipl_head;
-    delete ipl_head;
     ipl_head = node->next;
+    delete node;
   }
   count = 0;
 }