diff options
author | sijanec <anton@sijanec.eu> | 2021-05-04 23:20:33 +0200 |
---|---|---|
committer | sijanec <anton@sijanec.eu> | 2021-05-04 23:20:33 +0200 |
commit | 872a765eeebfeea314aae1f3a356f8ac280526aa (patch) | |
tree | f8acd64478f7be1f3bb5efb6ccd2e4d613f9c73c /src/utils.c | |
download | travnik-872a765eeebfeea314aae1f3a356f8ac280526aa.tar travnik-872a765eeebfeea314aae1f3a356f8ac280526aa.tar.gz travnik-872a765eeebfeea314aae1f3a356f8ac280526aa.tar.bz2 travnik-872a765eeebfeea314aae1f3a356f8ac280526aa.tar.lz travnik-872a765eeebfeea314aae1f3a356f8ac280526aa.tar.xz travnik-872a765eeebfeea314aae1f3a356f8ac280526aa.tar.zst travnik-872a765eeebfeea314aae1f3a356f8ac280526aa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c new file mode 100644 index 0000000..237f701 --- /dev/null +++ b/src/utils.c @@ -0,0 +1,4 @@ +#define free_char_after __attribute__ ((__cleanup__ (free_char_pointer))) +void free_char_pointer (char ** p) { + free(*p); +} |