From: Franck Bui-Huu Date: Sun, 10 Sep 2006 19:07:36 GMT Subject: Re: [PATCH] git-upload-archive: add config option to allow only specified formats Message-ID: In-Reply-To: <20060910155837.GA15974@lsrfire.ath.cx> 2006/9/10, Rene Scharfe : > Documentation/config.txt | 5 +++++ > builtin-upload-archive.c | 39 +++++++++++++++++++++++++++++++++++++++ > daemon.c | 2 ++ > 3 files changed, 46 insertions(+) [snip] > > + if (!upload_format_allowed(ar.name)) { > + free(daemon_formats); > + die("upload of %s format forbidden\n", ar.name); > + } just out of curiousity, why "free(daemon_formats)" right before a "die()" ? -- Franck