]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Cannot access members after they are freed :/
authorerdgeist <>
Fri, 19 Oct 2007 00:34:56 +0000 (00:34 +0000)
committererdgeist <>
Fri, 19 Oct 2007 00:34:56 +0000 (00:34 +0000)
opentracker.c

index 380168e3ac7e64ef5b7e929ca1ca649042e93eb2..03a90761889fae0084176082c3b2924425234e1e 100644 (file)
@@ -647,10 +647,10 @@ static void handle_timeouted( void ) {
   while( ( i = io_timeouted() ) != -1 ) {
     struct http_data* h=io_getcookie( i );
     if( h ) {
+      iob_reset( &h->batch );
       array_reset( &h->request );
       free( h );
     }
-    iob_reset( &h->batch );
     io_close(i);
   }
 }