On Thu, Jul 11, 2002 at 06:31:35PM +0200, Piotr Krukowiecki wrote:
> Got core dump today. This is second in few days, but i don't have
> bt from previous one (but *iirc* last was ArgV::getnext() too)
Try the attached.
--
Glenn Maynard
Index: FindJob.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/FindJob.cc,v
retrieving revision 1.27
diff -u -r1.27 FindJob.cc
--- FindJob.cc 2001/12/21 17:11:58 1.27
+++ FindJob.cc 2002/07/11 17:35:55
@@ -436,6 +436,7 @@
FinderJob_List::~FinderJob_List()
{
Delete(buf);
+ delete args;
}
void FinderJob_List::Finish()
Index: commands.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/commands.cc,v
retrieving revision 1.180
diff -u -r1.180 commands.cc
--- commands.cc 2002/07/10 08:50:24 1.180
+++ commands.cc 2002/07/11 17:35:59
@@ -2533,6 +2544,7 @@
FinderJob_List *j=new class FinderJob_List(session->Clone(),args,
output?output:new FDStream(1,"<stdout>"));
j->set_maxdepth(maxdepth);
+ args=0;
output=0;
return j;
}