builtin/notes: remove unnecessary free
commit9a4cb8781e4eec0445e7f3b693aa3589436255b9
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>
Sun, 11 Nov 2018 09:49:33 +0000 (11 01:49 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 13 Nov 2018 03:03:15 +0000 (13 12:03 +0900)
treeb0aaa5e6ac134c9e930c110913748694dc6d76c5
parentcae598d9980661a978e2df4fb338518f7bf09572
builtin/notes: remove unnecessary free

511726e4b1 ("builtin/notes: fix premature failure when trying to add
the empty blob", 2014-11-09) removed the check for !len but left a
call to free the buffer that will be otherwise NULL

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Acked-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/notes.c