Coverage report for server


src/
File: src/utils/free.c
Date: 2024-06-25 10:57:05
Lines:
5/5
100.0%
Functions:
1/1
100.0%
Branches:
2/4
50.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2024
3 ** zappy
4 ** File description:
5 ** free.c
6 */
7
8 #include <stdlib.h>
9
10 4 void secure_free(void **ptr)
11 {
12
2/4
✓ Branch 0 taken 4 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
4 if (ptr != NULL && *ptr != NULL) {
13 4 free(*ptr);
14 4 *ptr = NULL;
15 }
16 4 }
17