From 5b833f1b8ce65bd8c7a1d1afb57dc329f7693a9d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 7 Jun 2004 17:00:55 +0000 Subject: [PATCH] Do not sv_free session handle if close handler is called --- SimpleServer.xs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SimpleServer.xs b/SimpleServer.xs index 16eb108..34cbb9a 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.32 2004-06-07 16:48:38 adam Exp $ + * $Id: SimpleServer.xs,v 1.33 2004-06-07 17:00:55 adam Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -1301,7 +1301,8 @@ void bend_close(void *handle) sv_free((SV*) href); } - sv_free(zhandle->handle); + else + sv_free(zhandle->handle); PUTBACK; FREETMPS; LEAVE; -- 1.7.10.4