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