[PATCH] syslet: fix leak of ring and ahu
[fio.git] / engines / syslet-rw.c
index d6d9943c0bee29b2b23463c3ea1751f76f198868..71a2c6072427bbc84a6ca8cba69d0bab3e49efba 100644 (file)
@@ -206,6 +206,9 @@ static void async_head_exit(struct syslet_data *sd)
 {
        if (async_unregister(sd->ahu, sizeof(*sd->ahu)) < 0)
                perror("async_register");
+
+       free(sd->ahu);
+       free(sd->ring);
 }
 
 static void fio_syslet_cleanup(struct thread_data *td)