double free in builtin-update-index.c
commit690b61f5f13db05aa4ad0efc422bd01aef3c1367
authorPierre Habouzit <madcoder@debian.org>
Thu, 27 Sep 2007 10:51:18 +0000 (27 12:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 29 Sep 2007 08:40:19 +0000 (29 01:40 -0700)
tree7e2dc71449cd78c32661f45462158a7233dd2938
parent6d69b6f6ac27ab6f71a10da34b813ca25fd2a358
double free in builtin-update-index.c

path_name is either ptr that should not be freed, or a pointer to a strbuf
buffer that is deallocated when exiting the loop. Don't do that !

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-update-index.c