copy-file, rpmatch: fix problems found by cppcheck
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Mar 2013 16:30:58 +0000 (09:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Mar 2013 16:32:08 +0000 (09:32 -0700)
commit63e2bc808bf6df53af15bf527f3a4b4920033676
treea2cd7ed4663d36409d892c1ba897ead27d32e44e
parentcbd4dafd96be16e8e727663decb1002883813483
copy-file, rpmatch: fix problems found by cppcheck

Reported by Arno Onken in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00069.html>.
* lib/rpmatch.c (try): Fix memory leak.
* lib/copy-file.c: Include "ignore-value.h".
(qcopy_file_preserving): Ignore chown value.
* modules/copy-file (Depends-on): Add ignore-value.
ChangeLog
lib/copy-file.c
lib/rpmatch.c
modules/copy-file