projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove stray space
[privoxy.git]
/
filters.c
diff --git
a/filters.c
b/filters.c
index
6945d2f
..
7b586bc
100644
(file)
--- a/
filters.c
+++ b/
filters.c
@@
-1671,6
+1671,10
@@
static char *pcrs_filter_response(struct client_state *csp)
*/
if (!hits)
{
*/
if (!hits)
{
+ if (old != csp->iob->cur && old != new)
+ {
+ freez(old);
+ }
freez(new);
return(NULL);
}
freez(new);
return(NULL);
}
@@
-2066,8
+2070,8
@@
static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size)
{
log_error(LOG_LEVEL_ERROR,
"Chunk size %u exceeds buffered data left. "
{
log_error(LOG_LEVEL_ERROR,
"Chunk size %u exceeds buffered data left. "
- "Already digested %
u of %
u buffered bytes.",
- chunksize,
(unsigned int)newsize, (unsigned int)
*size);
+ "Already digested %
lu of %l
u buffered bytes.",
+ chunksize,
newsize,
*size);
return JB_ERR_PARSE;
}
return JB_ERR_PARSE;
}
@@
-2121,7
+2125,8
@@
static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size)
}
/* XXX: Should get its own loglevel. */
}
/* XXX: Should get its own loglevel. */
- log_error(LOG_LEVEL_RE_FILTER, "De-chunking successful. Shrunk from %d to %d", *size, newsize);
+ log_error(LOG_LEVEL_RE_FILTER,
+ "De-chunking successful. Shrunk from %lu to %lu", *size, newsize);
*size = newsize;
*size = newsize;