From 858a925c16c93eec915a2fc53468b39749f11d10 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Wed, 20 Feb 2019 16:30:36 -0700 Subject: [PATCH] remove another dead assignment to buf, which also causes leak These leaks happen just once in startup code, so they didn't matter in practice --- but, obviously, its better to fix them. --- racket/src/start/ustart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/racket/src/start/ustart.c b/racket/src/start/ustart.c index f2733ebd4e..5ba8cfb6b6 100644 --- a/racket/src/start/ustart.c +++ b/racket/src/start/ustart.c @@ -423,7 +423,6 @@ int main(int argc, char **argv) if (errno == ENAMETOOLONG) { /* Increase buffer size and try again: */ bufsize *= 2; - buf = (char *)malloc(bufsize + 1); } else break; } else {