[Modsnake-cvs] (jick) mod_snake/src mod_snake_buf.c
Status: Alpha
Brought to you by:
jick
|
From: Mod S. C. L. <mod...@so...> - 2002-01-10 18:55:00
|
Mod Snake CVS committal
Author : jick
Project : mod_snake
Module : src
Dir : mod_snake/src
Modified Files:
mod_snake_buf.c
Log Message:
We were freeing data when we probably shouldn't have been.
===================================================================
RCS file: /cvsroot/modsnake/mod_snake/src/mod_snake_buf.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- mod_snake_buf.c 2002/01/07 06:35:18 1.5
+++ mod_snake_buf.c 2002/01/10 18:54:58 1.6
@@ -83,9 +83,8 @@
apr_bucket *mod_snake_buf_bucketize(ModSnakeBuf *buf){
apr_bucket *res;
- res = apr_bucket_heap_create(buf->data, buf->endp - buf->data, 0);
- if(!res) return NULL;
- free(buf);
+ if(!(res = apr_bucket_heap_create(buf->data, buf->endp - buf->data, 1)))
+ return NULL;
return res;
}
|