From: <no...@so...> - 2003-02-28 13:09:32
|
Update of /cvsroot/ijbswa/current In directory sc8-pr-cvs1:/tmp/cvs-serv16765 Modified Files: Tag: v_3_0_branch urlmatch.c Log Message: Fixed a rare double free condition as per Bug #694713 Index: urlmatch.c =================================================================== RCS file: /cvsroot/ijbswa/current/Attic/urlmatch.c,v retrieving revision 1.10.2.4 retrieving revision 1.10.2.5 diff -u -d -r1.10.2.4 -r1.10.2.5 --- urlmatch.c 28 Feb 2003 12:57:44 -0000 1.10.2.4 +++ urlmatch.c 28 Feb 2003 13:09:29 -0000 1.10.2.5 @@ -33,6 +33,9 @@ * * Revisions : * $Log$ + * Revision 1.10.2.5 2003/02/28 13:09:29 oes + * Fixed a rare double free condition as per Bug #694713 + * * Revision 1.10.2.4 2003/02/28 12:57:44 oes * Moved freeing of http request structure to its owner * as per Dan Price's observations in Bug #694713 @@ -261,12 +264,11 @@ http->hostport = strdup(url_noproto); } - free(buf); + freez(buf); if ( (http->path == NULL) || (http->hostport == NULL)) { - free(buf); return JB_ERR_MEMORY; } } |