summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-13 22:30:26 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-13 22:30:26 +0200
commit2fbe635a83a79f8889afec421ae3990ea106fb91 (patch)
tree99789cfa152da47458500fd09e978a7f9099e46d /src/shared/util.h
parenta1d41e17a5c3861becd66f1c9dba7eb39ae4c478 (diff)
macro: introduce _cleanup_free_ macro for automatic freeing of scoped vars and make use of it
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 19edf98355..770a008223 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -528,3 +528,6 @@ void warn_melody(void);
int get_shell(char **ret);
int get_home_dir(char **ret);
+
+void freep(void *p);
+void fclosep(FILE **f);