Destroy router and filters in parent process MP-584
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Dec 2014 07:23:04 +0000 (08:23 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 16 Dec 2014 07:23:04 +0000 (08:23 +0100)
src/metaproxy_prog.cpp

index 170e923..dfcea29 100644 (file)
@@ -263,6 +263,7 @@ static int sc_main(
             yaz_daemon("metaproxy", mode, mode == YAZ_DAEMON_DEBUG ?
                        work_debug : work_normal, router, pidfile, uid);
         }
+        delete router;
     }
     catch (std::logic_error &e) {
         yaz_log(YLOG_FATAL,"std::logic error: %s" , e.what() );