From c9d7a7577430ae1ee0018929ec0c9449b017b5b1 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 20 Mar 2005 06:04:16 +0000 Subject: [PATCH] fix double-free of pmp3 --- src/dispatch.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/dispatch.c b/src/dispatch.c index a2907297..dc96eec1 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -611,7 +611,6 @@ void dispatch_stream(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) { ws_returnerror(pwsc,404,"Not found"); config_set_status(pwsc,pqi->session_id,NULL); db_dispose_item(pmp3); - free(pmp3); free(real_path); } else { if(pmp3->type) @@ -753,7 +752,6 @@ void dispatch_stream(WS_CONNINFO *pwsc, DBQUERYINFO *pqi) { config_set_status(pwsc,pqi->session_id,NULL); r_close(file_fd); db_dispose_item(pmp3); - free(pmp3); } }