diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2008-01-13 05:49:32 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2008-01-13 05:49:32 +0000 |
commit | cf9c5c1a566bda1bc3eaeee00091c457c12cc68c (patch) | |
tree | 8d8aae4a8bb167db64e23bb7f76f39014f36d45f /contrib/cvs/src/fileattr.c | |
parent | 83c36f7f985e86e33d46bc7d7fc4e648ca22226b (diff) |
Notes
Diffstat (limited to 'contrib/cvs/src/fileattr.c')
-rw-r--r-- | contrib/cvs/src/fileattr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/cvs/src/fileattr.c b/contrib/cvs/src/fileattr.c index 9b1085144454..ca6bd0eb478b 100644 --- a/contrib/cvs/src/fileattr.c +++ b/contrib/cvs/src/fileattr.c @@ -139,6 +139,7 @@ fileattr_read () "file attribute database corruption: tab missing in %s", fname); ++p; + if (fileattr_default_attrs) free (fileattr_default_attrs); fileattr_default_attrs = xstrdup (p); } else @@ -589,6 +590,7 @@ fileattr_write () { error (0, errno, "cannot make directory %s", repname); (void) umask (omask); + free (fname); free (repname); return; } @@ -600,6 +602,7 @@ fileattr_write () { error (0, errno, "cannot write %s", fname); (void) umask (omask); + free (fname); return; } } |