Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/lfs_cleanerd remove bogus frees on uninitialized var...
details: https://anonhg.NetBSD.org/src/rev/4ff32e7c7bf4
branches: trunk
changeset: 580665:4ff32e7c7bf4
user: christos <christos%NetBSD.org@localhost>
date: Tue May 03 00:20:17 2005 +0000
description:
remove bogus frees on uninitialized variable.
diffstat:
libexec/lfs_cleanerd/library.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r 33c7b896003a -r 4ff32e7c7bf4 libexec/lfs_cleanerd/library.c
--- a/libexec/lfs_cleanerd/library.c Tue May 03 00:16:59 2005 +0000
+++ b/libexec/lfs_cleanerd/library.c Tue May 03 00:20:17 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: library.c,v 1.42 2005/04/23 19:47:51 perseant Exp $ */
+/* $NetBSD: library.c,v 1.43 2005/05/03 00:20:17 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)library.c 8.3 (Berkeley) 5/24/95";
#else
-__RCSID("$NetBSD: library.c,v 1.42 2005/04/23 19:47:51 perseant Exp $");
+__RCSID("$NetBSD: library.c,v 1.43 2005/05/03 00:20:17 christos Exp $");
#endif
#endif /* not lint */
@@ -267,7 +267,6 @@
struct fhandle fh;
struct stat file_stat;
caddr_t ifp;
- char *ifile_name;
int count;
int rfd; /* Root file descriptor */
static int oldnseg;
@@ -296,7 +295,6 @@
if (use_mmap && file_stat.st_size == fsp->fi_ifile_length) {
/* (void) close(fid); */
- free(ifile_name);
return;
}
@@ -347,8 +345,6 @@
fsp->fi_ifile_count = ((fsp->fi_ifile_length >> fsp->fi_lfs.lfs_bshift)
- fsp->fi_lfs.lfs_cleansz - fsp->fi_lfs.lfs_segtabsz) *
fsp->fi_lfs.lfs_ifpb;
-
- free(ifile_name);
}
Home |
Main Index |
Thread Index |
Old Index