]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http.c
Use xmalloc() and friends to catch allocation failures
[thirdparty/git.git] / http.c
diff --git a/http.c b/http.c
index 1108ab4a3101fb4768cad420ccfdb52d87890a18..07889367040c4b49ca335262a69cfd91ba637f3c 100644 (file)
--- a/http.c
+++ b/http.c
@@ -402,7 +402,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;