Skip to content

Commit ed10318

Browse files
committed
fixup: access-after-free in first bugreport commit
1 parent fddc0d4 commit ed10318

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bugreport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ int cmd_main(int argc, const char **argv)
399399
report = open(report_path.buf, O_CREAT | O_EXCL | O_WRONLY);
400400

401401
if (report < 0) {
402-
strbuf_release(&report_path);
402+
UNLEAK(report_path);
403403
die("couldn't open '%s' for writing", report_path.buf);
404404
}
405405

0 commit comments

Comments
 (0)