tor-browser

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

pr_freelibraryname.rst (675B)


      1 PR_FreeLibraryName
      2 ==================
      3 
      4 Frees memory allocated by NSPR for library names and path names.
      5 
      6 
      7 Syntax
      8 ------
      9 
     10 .. code::
     11 
     12   #include <prlink.h>
     13 
     14   void PR_FreeLibraryName(char *mem);
     15 
     16 
     17 Parameters
     18 ~~~~~~~~~~
     19 
     20 The function has this parameter:
     21 
     22 ``mem``
     23   A reference to a character array that was previously allocated by the
     24   dynamic library runtime.
     25 
     26 
     27 Returns
     28 ~~~~~~~
     29 
     30 Nothing.
     31 
     32 
     33 Description
     34 -----------
     35 
     36 This function deletes the storage allocated by the runtime in the
     37 functions described previously. It is important to use this function to
     38 rather than calling directly into ``malloc`` in order to isolate the
     39 runtime's semantics regarding storage management.