diff --git a/src/config.c b/src/config.c index d6089454..faac480a 100644 --- a/src/config.c +++ b/src/config.c @@ -53,8 +53,8 @@ int config_init(config* cfg) */ int config_destroy(config* cfg) { - free_pointer(cfg->input); - free_pointer(cfg->output); + FREE_POINTER(cfg->input); + FREE_POINTER(cfg->output); free(cfg); return 1; diff --git a/src/global.h b/src/global.h index e6baf789..084ecb81 100644 --- a/src/global.h +++ b/src/global.h @@ -75,6 +75,6 @@ #define INLINE inline #endif -#define free_pointer(pointer) { free(pointer); pointer = NULL; } +#define FREE_POINTER(pointer) { free(pointer); pointer = NULL; } #endif \ No newline at end of file