daemon/readdir: avoid a small leak
authorJim Meyering <meyering@redhat.com>
Fri, 3 Jul 2009 09:52:19 +0000 (11:52 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 3 Jul 2009 15:04:21 +0000 (17:04 +0200)
commite9f5144537a4d89cc875bce42b269d1e2b119d8f
treed347323a475a1095fb00350dcf32c2a78876eda5
parent3f903f01d9d68f427d6afe8aa3daf24257c05c22
daemon/readdir: avoid a small leak

* daemon/readdir.c (do_readdir): Free both p and v.name, in case
only one of the allocations failed.
daemon/readdir.c