Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [RFC/PATCH 1/2] status: give more information during rebase -i

From: Matthieu Moy <hidden>
Date: 2016-06-15 23:05:07

Guillaume Pagès [off-list ref] writes:
+	if (!fclose(fp))
+		strbuf_detach(&buf, NULL);
+	else
+		strbuf_release(&buf);
Why these two cases? Aren't you leaking the buffer when calling
strbuf_detach and ignoring its return value?

(In general, there's not much to do when fclose fails actually)

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help