pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
location.c
Go to the documentation of this file.
1/*
2 * Copyright 2024 the Pacemaker project contributors
3 *
4 * The version control history for this file may have further details.
5 *
6 * This source code is licensed under the GNU Lesser General Public License
7 * version 2.1 or later (LGPLv2.1+) WITHOUT ANY WARRANTY.
8 */
9
10#include <crm_internal.h>
11
12#include <stdlib.h> // free()
13#include <glib.h> // gpointer, g_list_free_full()
14
16
23void
24pcmk__free_location(gpointer user_data)
25{
26 pcmk__location_t *location = user_data;
27
28 g_list_free_full(location->nodes, pcmk__free_node_copy);
29 free(location->id);
30 free(location);
31}
void pcmk__free_location(gpointer user_data)
Definition location.c:24
void pcmk__free_node_copy(void *data)
Definition nodes.c:64
Scheduler API.
Location constraint object.