Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Sep 1998 21:17:47 -0700 (PDT)
From:      Warner Losh <imp@FreeBSD.ORG>
To:        cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   cvs commit: src/lib/libI77 lread.c src/lib/libc/db/btree bt_overflow.c src/lib/libc/db/recno rec_get.c rec_put.c src/lib/libc/gen fts.c getcap.c getcwd.c getgrent.c getpwent.c opendir.c scandir.c stringlist.c src/lib/libc/locale collate.c ...
Message-ID:  <199809160417.VAA15050@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
imp         1998/09/15 21:17:47 PDT

  Modified files:
    lib/libI77           lread.c 
    lib/libc/db/btree    bt_overflow.c 
    lib/libc/db/recno    rec_get.c rec_put.c 
    lib/libc/gen         fts.c getcap.c getcwd.c getgrent.c 
                         getpwent.c opendir.c scandir.c 
                         stringlist.c 
    lib/libc/locale      collate.c 
    lib/libc/regex       regcomp.c 
    lib/libc/stdio       asprintf.c fvwrite.c vasprintf.c 
                         vfprintf.c 
    lib/libc/stdlib      realpath.c setenv.c 
    lib/libc/stdtime     localtime.c timelocal.c 
    lib/libedit          el.c el.h map.c tokenizer.c 
    lib/libkvm           kvm_proc.c 
    lib/libmytinfo       buildpath.c 
    lib/libss            help.c invocation.c parse.c request_tbl.c 
    lib/libutil          login_auth.c 
  Log:
  Replace memory leaking instances of realloc with non-leaking reallocf.
  In some cases replace if (a == null) a = malloc(x); else a =
  realloc(a, x); with simple reallocf(a, x).  Per ANSI-C, this is
  guaranteed to be the same thing.
  
  I've been running these on my system here w/o ill effects for some
  time.  However, the CTM-express is at part 6 of 34 for the CAM
  changes, so I've not been able to do a build world with the CAM in the
  tree with these changes.  Shouldn't impact anything, but...
  
  Revision  Changes    Path
  1.5       +1 -1      src/lib/libI77/lread.c
  1.2       +15 -11    src/lib/libc/db/btree/bt_overflow.c
  1.2       +58 -45    src/lib/libc/db/recno/rec_get.c
  1.4       +2 -3      src/lib/libc/db/recno/rec_put.c
  1.8       +2 -2      src/lib/libc/gen/fts.c
  1.7       +7 -7      src/lib/libc/gen/getcap.c
  1.17      +1 -1      src/lib/libc/gen/getcwd.c
  1.17      +3 -3      src/lib/libc/gen/getgrent.c
  1.46      +1 -1      src/lib/libc/gen/getpwent.c
  1.8       +1 -1      src/lib/libc/gen/opendir.c
  1.4       +1 -1      src/lib/libc/gen/scandir.c
  1.3       +1 -1      src/lib/libc/gen/stringlist.c
  1.16      +2 -2      src/lib/libc/locale/collate.c
  1.12      +4 -4      src/lib/libc/regex/regcomp.c
  1.5       +2 -2      src/lib/libc/stdio/asprintf.c
  1.9       +2 -2      src/lib/libc/stdio/fvwrite.c
  1.10      +2 -2      src/lib/libc/stdio/vasprintf.c
  1.20      +2 -2      src/lib/libc/stdio/vfprintf.c
  1.6       +1 -1      src/lib/libc/stdlib/realpath.c
  1.4       +1 -1      src/lib/libc/stdlib/setenv.c
  1.20      +7 -2      src/lib/libc/stdtime/localtime.c
  1.2       +2 -2      src/lib/libc/stdtime/timelocal.c
  1.5       +2 -2      src/lib/libedit/el.c
  1.2       +1 -0      src/lib/libedit/el.h
  1.5       +2 -2      src/lib/libedit/map.c
  1.3       +3 -2      src/lib/libedit/tokenizer.c
  1.21      +3 -1      src/lib/libkvm/kvm_proc.c
  1.4       +2 -7      src/lib/libmytinfo/buildpath.c
  1.5       +1 -1      src/lib/libss/help.c
  1.3       +1 -1      src/lib/libss/invocation.c
  1.3       +1 -1      src/lib/libss/parse.c
  1.3       +1 -1      src/lib/libss/request_tbl.c
  1.9       +2 -2      src/lib/libutil/login_auth.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809160417.VAA15050>