diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:59:05 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:59:05 +0000 |
commit | a305f593f72a69d92db8d28d14196f7e6311a8c0 (patch) | |
tree | 82b0b5013e4fa594cc4ee253629db92204953c76 /methods/http.cc | |
parent | 2c9a72d180456385535ef3683d56d95ca1d54978 (diff) |
Corrections for object lifetime
Author: jgg
Date: 2002-04-18 05:09:38 GMT
Corrections for object lifetime
Diffstat (limited to 'methods/http.cc')
-rw-r--r-- | methods/http.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/methods/http.cc b/methods/http.cc index 6e989102b..4521197ed 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: http.cc,v 1.53 2001/07/01 20:49:09 jgg Exp $ +// $Id: http.cc,v 1.54 2002/04/18 05:09:38 jgg Exp $ /* ###################################################################### HTTP Aquire Method - This is the HTTP aquire method for APT. @@ -1142,6 +1142,9 @@ int HttpMethod::Loop() // Hard internal error, kill the connection and fail case 5: { + delete File; + File = 0; + Fail(); RotateDNS(); Server->Close(); @@ -1179,3 +1182,5 @@ int main() return Mth.Loop(); } + + |