Merge branch 'jc/maint-1.6.0-diff-borrow-carefully' into maint-1.6.1
[gitweb.git] / http.c
diff --git a/http.c b/http.c
index c18e30abe84eee8d879814227d0433e9219e1273..ee58799ca8cd433218ca7d40946580732a9010e7 100644 (file)
--- a/http.c
+++ b/http.c
@@ -408,7 +408,7 @@ static struct fill_chain *fill_cfg = NULL;
 
 void add_fill_function(void *data, int (*fill)(void *))
 {
-       struct fill_chain *new = malloc(sizeof(*new));
+       struct fill_chain *new = xmalloc(sizeof(*new));
        struct fill_chain **linkp = &fill_cfg;
        new->data = data;
        new->fill = fill;