commit | 78abe618a87df1f63f7a6b439c72173f4bee5b85 | [log] [tgz] |
---|---|---|
author | Krzysztof Piotr Oledzki <ole@ans.pl> | Sun Sep 27 13:23:20 2009 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 01 10:17:37 2009 +0200 |
tree | 4adb75df9a18c13beac95d2b19c16606a07620b5 | |
parent | ca7d4b98d404596e307167c08852a3178f72c7b5 [diff] [blame] |
[MAJOR] struct chunk rework Add size to struct chunk and simplify the code as there is no longer required to pass sizeof in chunk_printf().
diff --git a/src/haproxy.c b/src/haproxy.c index e448f4f..d426e67 100644 --- a/src/haproxy.c +++ b/src/haproxy.c
@@ -704,7 +704,7 @@ free(p->monitor_uri); for (i = 0; i < HTTP_ERR_SIZE; i++) - free(p->errmsg[i].str); + chunk_destroy(&p->errmsg[i]); for (i = 0; i < p->nb_reqadd; i++) free(p->req_add[i]);