summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_freeif.rst
blob: 3d8f9baba511a1309a226a0f94a75583746dd44e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
PR_FREEIF
=========

Conditionally frees allocated memory.


Syntax
------

.. code::

   #include <prmem.h>

   void PR_FREEIF(_ptr);


Parameter
~~~~~~~~~

``_ptr``
   The address of memory to be returned to the heap.


Returns
~~~~~~~

Nothing.


Description
-----------

This macro returns memory to the heap when ``_ptr`` is not ``NULL``. If
``_ptr`` is ``NULL``, the macro has no effect.