X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=http-push.c;h=c9dd9a1f6475cc8772b1e0f528a9f54751d6445a;hb=e69a6f47c4e25a20170eb989a55257d0399f795b;hp=68052888570af7d09535db8831b8cf3ef2881589;hpb=392f1300911120fbaa4b77c737fe13e205726aca;p=git.git diff --git a/http-push.c b/http-push.c index 680528885..c9dd9a1f6 100644 --- a/http-push.c +++ b/http-push.c @@ -2237,7 +2237,7 @@ int main(int argc, char **argv) no_pragma_header = curl_slist_append(no_pragma_header, "Pragma:"); if (remote->url && remote->url[strlen(remote->url)-1] != '/') { - rewritten_url = malloc(strlen(remote->url)+2); + rewritten_url = xmalloc(strlen(remote->url)+2); strcpy(rewritten_url, remote->url); strcat(rewritten_url, "/"); remote->url = rewritten_url;