summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/reallocf.c
Commit message (Collapse)AuthorAgeFilesLines
* In reallocf(3), free the memory only when size != 0. Otherwise, when thejh2010-03-031-1/+8
| | | | | | | | System V compatibility option (malloc "V" flag) is in effect a zero sized reallocf() could cause a double free. PR: bin/141753 Submitted by: Dan Lukes
* Fix the style of the SCM ID's.obrien2002-03-221-2/+4
| | | | I believe have made all of libc .c's as consistent as possible.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Fix style problems noted by Bruce:imp1998-09-161-5/+32
| | | | | | o No copyright on reallocf. o Order makefile list correctly. o indent reallocf properly.
* Add reallocf to the library. This function is simliar to realloc, butimp1998-09-141-0/+12
when it returns NULL to indicate failure, it will also free the memory that was passed to it, if that was non-null. This does not change the semantics of realloc. A second commit will be done to commit the conversion of those places in the code that can safely use this to avoid memory leaks when confronted with low memory situations. Beaten-to-death-but-finally-approved-in: -current
OpenPOWER on IntegriCloud