Skip to content

Commit 1f3992f

Browse files
rscharfegitster
authored andcommitted
notes: release strbuf after use in notes_copy_from_stdin()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 814c4b3 commit 1f3992f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

builtin/notes.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ static int notes_copy_from_stdin(int force, const char *rewrite_cmd)
328328
} else {
329329
finish_copy_notes_for_rewrite(c, msg);
330330
}
331+
strbuf_release(&buf);
331332
return ret;
332333
}
333334

0 commit comments

Comments
 (0)