]> git.ipfire.org Git - thirdparty/git.git/blobdiff - bugreport.c
Merge branch 'jk/refspecs-cleanup'
[thirdparty/git.git] / bugreport.c
index 09579e268df975767f88677a17c4971a3eb23860..7ca0fba1b8ed46a86290bd6ed966cb9aa8233de6 100644 (file)
@@ -175,10 +175,8 @@ int cmd_main(int argc, const char **argv)
        /* fopen doesn't offer us an O_EXCL alternative, except with glibc. */
        report = open(report_path.buf, O_CREAT | O_EXCL | O_WRONLY, 0666);
 
-       if (report < 0) {
-               UNLEAK(report_path);
+       if (report < 0)
                die(_("couldn't create a new file at '%s'"), report_path.buf);
-       }
 
        if (write_in_full(report, buffer.buf, buffer.len) < 0)
                die_errno(_("unable to write to %s"), report_path.buf);