diff --git a/src/libsysprof-capture/sysprof-capture-reader.c b/src/libsysprof-capture/sysprof-capture-reader.c index ce48d7be..41e6af34 100644 --- a/src/libsysprof-capture/sysprof-capture-reader.c +++ b/src/libsysprof-capture/sysprof-capture-reader.c @@ -123,6 +123,10 @@ sysprof_capture_reader_finalize (SysprofCaptureReader *self) { if (self != NULL) { + for (size_t i = 0; i < self->n_list_files; i++) + free (self->list_files[i]); + free (self->list_files); + close (self->fd); free (self->buf); free (self->filename);