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
14
15 #include <crm/common/scheduler.h>
16
17 /*!
18 * \internal
19 * \brief Free an action relation
20 *
21 * \param[in,out] user_data Action relation to free
22 */
23 void
24 pcmk__free_action_relation(gpointer user_data)
/* ![[previous]](../icons/n_left.png)
![[next]](../icons/n_right.png)
![[first]](../icons/n_first.png)
![[last]](../icons/n_last.png)
![[top]](../icons/top.png)
![[bottom]](../icons/bottom.png)
![[index]](../icons/index.png)
*/
25 {
26 pcmk__action_relation_t *relation = user_data;
27
28 free(relation->task1);
29 free(relation->task2);
30 free(relation);
31 }