chiark / gitweb /
journal,shared: add _cleanup_journal_close_
[elogind.git] / src / shared / macro.h
index 055919048c90d8c203baf1ae1d8913d2c002714a..90a663b9cee5bcd4639a79aeca83e1eb358a858c 100644 (file)
@@ -203,6 +203,7 @@ static inline size_t IOVEC_INCREMENT(struct iovec *i, unsigned n, size_t k) {
 #define _cleanup_set_free_ __attribute__((cleanup(set_freep)))
 #define _cleanup_set_free_free_ __attribute__((cleanup(set_free_freep)))
 #define _cleanup_strv_free_ __attribute__((cleanup(strv_freep)))
+#define _cleanup_journal_close_ __attribute__((cleanup(journal_closep)))
 
 #define VA_FORMAT_ADVANCE(format, ap)                                   \
 do {                                                                    \