The move semantics of AFF4Flusher are incorrect as written (Flush will not be called in all instances where it should be and can lead to leaks). For correctness (and probably performance), I've redefined AFF4Flusher as a std::unique_ptr with a custom deleter.
The move semantics of AFF4Flusher are incorrect as written (Flush will not be called in all instances where it should be and can lead to leaks). For correctness (and probably performance), I've redefined AFF4Flusher as a std::unique_ptr with a custom deleter.