Skip to content

Commit

Permalink
Fix incorrect ;ength passed to munmap
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Jun 4, 2024
1 parent d0ceac7 commit 01ba2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion visionipc/visionbuf_cl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int VisionBuf::free() {
if (err != 0) return err;
}

err = munmap(this->addr, this->len);
err = munmap(this->addr, this->mmap_len);
if (err != 0) return err;

err = close(this->fd);
Expand Down

0 comments on commit 01ba2d3

Please sign in to comment.