aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-04 08:25:41 +0000
committerMike Frysinger <vapier@gentoo.org>2012-11-04 08:25:41 +0000
commit0e5348b234efcf7f783a9a01950d95d6ddd55c59 (patch)
tree21a74769f68280425a380b148e199d6ed7236027
parentscanelf: pre-compile all the regexes up front rather than everytime we try to... (diff)
downloadpax-utils-0.5.tar.gz
pax-utils-0.5.tar.bz2
pax-utils-0.5.zip
skip freeing of memory at exit since the kernel takes care of that for usv0.5
-rw-r--r--scanelf.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/scanelf.c b/scanelf.c
index 01c4c0a..f4e2aa5 100644
--- a/scanelf.c
+++ b/scanelf.c
@@ -1,13 +1,13 @@
/*
* Copyright 2003-2012 Gentoo Foundation
* Distributed under the terms of the GNU General Public License v2
- * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.249 2012/11/04 08:23:12 vapier Exp $
+ * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.250 2012/11/04 08:25:41 vapier Exp $
*
* Copyright 2003-2012 Ned Ludd - <solar@gentoo.org>
* Copyright 2004-2012 Mike Frysinger - <vapier@gentoo.org>
*/
-static const char rcsid[] = "$Id: scanelf.c,v 1.249 2012/11/04 08:23:12 vapier Exp $";
+static const char rcsid[] = "$Id: scanelf.c,v 1.250 2012/11/04 08:25:41 vapier Exp $";
const char argv0[] = "scanelf";
#include "paxinc.h"
@@ -2326,6 +2326,7 @@ static int parseargs(int argc, char *argv[])
ret = scanelf_dir(search_path);
}
+#ifdef __PAX_UTILS_CLEANUP
/* clean up */
xarrayfree(ldpaths);
xarrayfree(find_sym_arr);
@@ -2344,6 +2345,8 @@ static int parseargs(int argc, char *argv[])
if (ldcache != 0)
munmap(ldcache, ldcache_size);
+#endif
+
return ret;
}