'\" t
.\" Copyright (c) 2012 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
+.\" %%%LICENSE_START(VERBATIM)
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
.\"
-.TH MALLOC_TRIM 3 2012-03-29 "Linux" "Linux Programmer's Manual"
+.TH MALLOC_TRIM 3 2014-05-28 "Linux" "Linux Programmer's Manual"
.SH NAME
malloc_trim \- release free memory from the top of the heap
.SH SYNOPSIS
.B #include <malloc.h>
-.BI "void malloc_trim(size_t " pad );
+.BI "int malloc_trim(size_t " pad );
.SH DESCRIPTION
The
.BR malloc_trim ()
This function cannot release free memory located at places
other than the top of the heap.
-.SH NOTES
-This function only releases memory in the main arena.
+
+This function releases only memory in the main arena.
.\" malloc/malloc.c::mTRIm():
.\" return result | (av == &main_arena ? sYSTRIm (pad, av) : 0);
.SH SEE ALSO
.BR sbrk (2),
.BR malloc (3),
.BR mallopt (3)
+.SH COLOPHON
+This page is part of release 3.79 of the Linux
+.I man-pages
+project.
+A description of the project,
+information about reporting bugs,
+and the latest version of this page,
+can be found at
+\%http://www.kernel.org/doc/man\-pages/.