summaryrefslogtreecommitdiff
path: root/src/system.h
diff options
context:
space:
mode:
authorAlain Magloire <alainm@rcsm.ee.mcgill.ca>1998-11-17 00:18:03 +0000
committerAlain Magloire <alainm@rcsm.ee.mcgill.ca>1998-11-17 00:18:03 +0000
commit2aaac3ad88acaaca7ecb83ccd9d8fc86768cbd5a (patch)
treea174b163730a692a6c120268d260a92c2dbf8bbd /src/system.h
parent200414137844328bb36c90fa7f999f658e8619c1 (diff)
downloadgrep-2aaac3ad88acaaca7ecb83ccd9d8fc86768cbd5a.tar.gz
Remove memory leak with valloced buffers, by invoking malloc instead.
Remove memory leak with valloced buffers, by invoking malloc instead. * dfa.c (dfacomp), search.c (EGexecute): Don't assume char is unsigned.
Diffstat (limited to 'src/system.h')
-rw-r--r--src/system.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/system.h b/src/system.h
index 8ce4e473..5bdb71f2 100644
--- a/src/system.h
+++ b/src/system.h
@@ -31,7 +31,6 @@
# define PARAMS(x) ()
#endif
-#define valloc system_valloc /* kludge */
#ifdef HAVE_UNISTD_H
# include <fcntl.h>
# include <unistd.h>
@@ -70,15 +69,6 @@ ptr_t malloc(), realloc(), calloc();
void free();
#endif
-/* Be careful declaring valloc. OSF/1 3.2 declares it in stdlib.h,
- BSD/OS 2.1 in unistd.h. Ultrix 4.4 doesn't declare it. */
-#undef valloc /* undo the kludge */
-#if !defined(HAVE_VALLOC)
-# define valloc malloc
-#else
-ptr_t valloc();
-#endif
-
#if __STDC__
# include <stddef.h>
#endif