X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=memory.c;h=d336c2bcb8cea017b6d9db980e3c39a95d70c717;hp=a7bf82a88fbafd276be899e769e29348c1682757;hb=0268b8ba7b2c79c669323cb1fcc0b045b84313f1;hpb=ee88470c001012d08ae37bfc31741a935be2e7a1 diff --git a/memory.c b/memory.c index a7bf82a8..d336c2bc 100644 --- a/memory.c +++ b/memory.c @@ -98,7 +98,7 @@ void free_io_mem(struct thread_data *td) { if (td->mem_type == MEM_MALLOC) free(td->orig_buffer); - else if (td->mem_type == MEM_SHM) { + else if (td->mem_type == MEM_SHM || td->mem_type == MEM_SHMHUGE) { struct shmid_ds sbuf; shmdt(td->orig_buffer);