changeset: 36:bd03d98a6815
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Sun Feb 18 13:52:24 2007 -0500
summary: Fix an early free bug.
diff -r d9e3cf0e2410 -r bd03d98a6815 request.c
--- a/request.c Sat Feb 17 10:41:46 2007 -0500
+++ b/request.c Sun Feb 18 13:52:24 2007 -0500
@@ -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)
Received on Sun Feb 18 2007 - 19:55:54 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:25 UTC