blob: 0e7fa545a30c980f9ce414ad3843b353207462d5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
/**
* Release all resources allocated to a `libcoopgamma_error_t`,
* the allocation of the record itself is not freed
*
* Always call this function after failed call to `libcoopgamma_error_initialise`
* or failed call to `libcoopgamma_error_unmarshal`
*
* @param this The record to destroy
*/
void
libcoopgamma_error_destroy(libcoopgamma_error_t *restrict this)
{
free(this->description);
this->description = NULL;
}
|