Project

General

Profile

lighttpd-1.4.19-mod_rewrite.patch

patch to resolve mod_rewrite memory leak - qhy, 2008-09-21 00:26

View differences:

mod_rewrite.c 2008-09-21 08:20:53.000000000 +0800
419 419

  
420 420
			pcre_free(list);
421 421

  
422
			hctx = handler_ctx_init();
423

  
424
			con->plugin_ctx[p->id] = hctx;
422
			if (con->plugin_ctx[p->id] == NULL) {
423
				hctx = handler_ctx_init();
424
				con->plugin_ctx[p->id] = hctx;
425
			} else {
426
				hctx = con->plugin_ctx[p->id];
427
			}
425 428

  
426 429
			if (rule->once) hctx->state = REWRITE_STATE_FINISHED;
427 430