summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c4
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);
+}