chiark / gitweb /
move _cleanup_ attribute in front of the type
[elogind.git] / src / core / path.c
index b8ba057561384ca74aa0eb3987e08c6da379c1d2..d5b5eeb4a120f722b15139c52e5a35d5eceba845 100644 (file)
@@ -156,7 +156,7 @@ void path_spec_unwatch(PathSpec *s, Unit *u) {
 }
 
 int path_spec_fd_event(PathSpec *s, uint32_t events) {
-        uint8_t _cleanup_free_ *buf = NULL;
+        _cleanup_free_ uint8_t *buf = NULL;
         struct inotify_event *e;
         ssize_t k;
         int l;