"Fossies" - the Fresh Open Source Software Archive

Member "petsc-3.12.4/docs/manualpages/Sys/PetscFree.html" (4 Feb 2020, 3601 Bytes) of package /linux/misc/petsc-3.12.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) HTML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
    2 <HTML>
    3 <HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscFree.html" />
    4 <META NAME="GENERATOR" CONTENT="DOCTEXT">
    5 <TITLE>PetscFree</TITLE>
    6 </HEAD>
    7 <BODY BGCOLOR="FFFFFF">
    8    <div id="version" align=right><b>petsc-3.12.4 2020-02-04</b></div>
    9    <div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.12.4 v3.12.4 docs/manualpages/Sys/PetscFree.html "><small>Report Typos and Errors</small></a></div>
   10 <A NAME="PetscFree"><H1>PetscFree</H1></A>
   11 Frees memory 
   12 <H3><FONT COLOR="#CC3333">Synopsis</FONT></H3>
   13 <PRE>
   14 #include &lt;petscsys.h&gt;
   15 <A HREF="../Sys/PetscErrorCode.html#PetscErrorCode">PetscErrorCode</A> <A HREF="../Sys/PetscFree.html#PetscFree">PetscFree</A>(void *memory)
   16 </PRE>
   17 Not Collective
   18 <P>
   19 <H3><FONT COLOR="#CC3333">Input Parameter</FONT></H3>
   20 <DT><B>memory </B> -memory to free (the pointer is ALWAYS set to NULL upon sucess)
   21 <br>
   22 <P>
   23 
   24 <P>
   25 <H3><FONT COLOR="#CC3333">Notes</FONT></H3>
   26 Do not free memory obtained with <A HREF="../Sys/PetscMalloc2.html#PetscMalloc2">PetscMalloc2</A>(), <A HREF="../Sys/PetscCalloc2.html#PetscCalloc2">PetscCalloc2</A>() etc, they must be freed with <A HREF="../Sys/PetscFree2.html#PetscFree2">PetscFree2</A>() etc.
   27 <P>
   28 It is safe to call <A HREF="../Sys/PetscFree.html#PetscFree">PetscFree</A>() on a NULL pointer.
   29 <P>
   30 <H3><FONT COLOR="#CC3333">See Also</FONT></H3>
   31  <A HREF="../Sys/PetscNew.html#PetscNew">PetscNew</A>(), <A HREF="../Sys/PetscMalloc.html#PetscMalloc">PetscMalloc</A>(), <A HREF="../Sys/PetscNewLog.html#PetscNewLog">PetscNewLog</A>(), <A HREF="../Sys/PetscMalloc1.html#PetscMalloc1">PetscMalloc1</A>(), <A HREF="../Sys/PetscCalloc1.html#PetscCalloc1">PetscCalloc1</A>()
   32 <BR>
   33 <P>
   34 <P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>beginner<BR>
   35 <H3><FONT COLOR="#CC3333">Location</FONT></H3>
   36 </B><A HREF="../../../include/petscsys.h.html#PetscFree">include/petscsys.h</A>
   37 <P><H3><FONT COLOR="#CC3333">Examples</FONT></H3>
   38 <A HREF="../../../src/sys/classes/random/examples/tutorials/ex1.c.html">src/sys/classes/random/examples/tutorials/ex1.c.html</A><BR>
   39 <A HREF="../../../src/sys/classes/random/examples/tutorials/ex2.c.html">src/sys/classes/random/examples/tutorials/ex2.c.html</A><BR>
   40 <A HREF="../../../src/vec/vec/utils/tagger/examples/tutorials/ex1.c.html">src/vec/vec/utils/tagger/examples/tutorials/ex1.c.html</A><BR>
   41 <A HREF="../../../src/vec/vec/examples/tutorials/ex6.c.html">src/vec/vec/examples/tutorials/ex6.c.html</A><BR>
   42 <A HREF="../../../src/vec/vec/examples/tutorials/ex8.c.html">src/vec/vec/examples/tutorials/ex8.c.html</A><BR>
   43 <A HREF="../../../src/vec/vec/examples/tutorials/ex9.c.html">src/vec/vec/examples/tutorials/ex9.c.html</A><BR>
   44 <A HREF="../../../src/vec/is/is/examples/tutorials/ex1.c.html">src/vec/is/is/examples/tutorials/ex1.c.html</A><BR>
   45 <A HREF="../../../src/vec/is/sf/examples/tutorials/ex1.c.html">src/vec/is/sf/examples/tutorials/ex1.c.html</A><BR>
   46 <A HREF="../../../src/mat/examples/tutorials/ex2.c.html">src/mat/examples/tutorials/ex2.c.html</A><BR>
   47 <A HREF="../../../src/mat/examples/tutorials/ex9.c.html">src/mat/examples/tutorials/ex9.c.html</A><BR>
   48 <A HREF="../../../src/mat/examples/tutorials/ex10.c.html">src/mat/examples/tutorials/ex10.c.html</A><BR>
   49 <BR><A HREF="./index.html">Index of all Sys routines</A>
   50 <BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
   51 <BR><A HREF="../singleindex.html">Index of all manual pages</A>
   52 </BODY></HTML>