apply: free unused fragments for submodule patch
commit9d16c2d51412c3ebf06f88faddde3610d6e21892
authorJunio C Hamano <gitster@pobox.com>
Thu, 29 Mar 2012 06:22:22 +0000 (28 23:22 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Mar 2012 06:27:00 +0000 (28 23:27 -0700)
tree8525381a2656fecb05f6941ffd67ddb826887d1d
parent8192a2fafcd69fe1cad2fe84c99b03c63393c117
apply: free unused fragments for submodule patch

We simply discarded the fragments that we are not going to use upon seeing
a patch to update the submodule commit bound at path that we have not
checked out.

Free these fragments, not to leak them.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c