tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

pr_freeif.rst (394B)


      1 PR_FREEIF
      2 =========
      3 
      4 Conditionally frees allocated memory.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prmem.h>
     13 
     14   void PR_FREEIF(_ptr);
     15 
     16 
     17 Parameter
     18 ~~~~~~~~~
     19 
     20 ``_ptr``
     21   The address of memory to be returned to the heap.
     22 
     23 
     24 Returns
     25 ~~~~~~~
     26 
     27 Nothing.
     28 
     29 
     30 Description
     31 -----------
     32 
     33 This macro returns memory to the heap when ``_ptr`` is not ``NULL``. If
     34 ``_ptr`` is ``NULL``, the macro has no effect.