diff --git a/src/Main/metar_main.cxx b/src/Main/metar_main.cxx index a80c1da2c..bf7430d12 100644 --- a/src/Main/metar_main.cxx +++ b/src/Main/metar_main.cxx @@ -576,6 +576,7 @@ int main(int argc, char *argv[]) try { MetarRequest* mr = new MetarRequest(argv[i]); + HTTP::Request_ptr own(mr); http.makeRequest(mr); // spin until the request completes, fails or times out