mirror of
				https://github.com/openresty/openresty.git
				synced 2024-10-13 00:29:41 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			358 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			358 B
		
	
	
	
		
			C
		
	
	
	
	
	
diff --git a/src/os/unix/ngx_daemon.c b/src/os/unix/ngx_daemon.c
 | 
						|
index ab672110..f259af31 100644
 | 
						|
--- a/src/os/unix/ngx_daemon.c
 | 
						|
+++ b/src/os/unix/ngx_daemon.c
 | 
						|
@@ -23,6 +23,8 @@ ngx_daemon(ngx_log_t *log)
 | 
						|
         break;
 | 
						|
 | 
						|
     default:
 | 
						|
+        /* just to make it ASAN or Valgrind clean */
 | 
						|
+        ngx_destroy_pool(ngx_cycle->pool);
 | 
						|
         exit(0);
 | 
						|
     }
 |