libixp

git clone git://oldgit.suckless.org/libixp/
Log | Files | Refs | LICENSE

commit fa3da694b52c7f296a2564b21a29469f57ac5586
parent 451b755b85a8b96c375aa89e8e14fcbd249dfbf1
Author: Kris Maglione <jg@suckless.org>
Date:   Sun, 18 Feb 2007 13:52:24 -0500

Fix an early free bug.

Diffstat:
request.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/request.c b/request.c @@ -339,6 +339,7 @@ respond(P9Req *r, char *error) { r->ofcall.type = RERROR; r->ofcall.ename = error; } + deletekey(&pc->tagmap, r->ifcall.tag);; if(pc->conn) ixp_server_respond_fcall(pc->conn, &r->ofcall); switch(r->ofcall.type) { @@ -349,7 +350,6 @@ respond(P9Req *r, char *error) { free(r->ofcall.data); break; } - deletekey(&pc->tagmap, r->ifcall.tag);; free(r); pc->ref--; if(!pc->conn && pc->ref == 0)