Line  | Count  | Source (jump to first uncovered line)  | 
1  |  | /* free.c - implement stub free() caller, typically for Windows  | 
2  |  |    Copyright (C) 2011-2024 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  |  | idn2_free (void *ptr)  | 
47  | 0  | { | 
48  | 0  |   free (ptr);  | 
49  | 0  | }  |