LCOV - code coverage report
Current view: top level - home/jas/src/libidn2 - free.c (source / functions) Hit Total Coverage
Test: libidn2 Lines: 0 3 0.0 %
Date: 2014-06-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* free.c - implement stub free() caller, typically for Windows
       2                 :            :    Copyright (C) 2011-2014 Simon Josefsson
       3                 :            : 
       4                 :            :    Libidn2 is free software: you can redistribute it and/or modify it
       5                 :            :    under the terms of either:
       6                 :            : 
       7                 :            :      * the GNU Lesser General Public License as published by the Free
       8                 :            :        Software Foundation; either version 3 of the License, or (at
       9                 :            :        your option) any later version.
      10                 :            : 
      11                 :            :    or
      12                 :            : 
      13                 :            :      * the GNU General Public License as published by the Free
      14                 :            :        Software Foundation; either version 2 of the License, or (at
      15                 :            :        your option) any later version.
      16                 :            : 
      17                 :            :    or both in parallel, as here.
      18                 :            : 
      19                 :            :    This program is distributed in the hope that it will be useful,
      20                 :            :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      21                 :            :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      22                 :            :    GNU General Public License for more details.
      23                 :            : 
      24                 :            :    You should have received copies of the GNU General Public License and
      25                 :            :    the GNU Lesser General Public License along with this program.  If
      26                 :            :    not, see <http://www.gnu.org/licenses/>.
      27                 :            : */
      28                 :            : 
      29                 :            : #include <config.h>
      30                 :            : 
      31                 :            : #include "idn2.h"
      32                 :            : 
      33                 :            : #include <stdlib.h>               /* free */
      34                 :            : 
      35                 :            : /**
      36                 :            :  * idn2_free:
      37                 :            :  * @ptr: pointer to deallocate
      38                 :            :  *
      39                 :            :  * Call free(3) on the given pointer.
      40                 :            :  *
      41                 :            :  * This function is typically only useful on systems where the library
      42                 :            :  * malloc heap is different from the library caller malloc heap, which
      43                 :            :  * happens on Windows when the library is a separate DLL.
      44                 :            :  **/
      45                 :            : void
      46                 :          0 : idn2_free (void *ptr)
      47                 :            : {
      48                 :          0 :   free (ptr);
      49                 :          0 : }

Generated by: LCOV version 1.9