Skip to content

Commit

Permalink
Fix: recourse leaking in v4l2 app (#1014)
Browse files Browse the repository at this point in the history
Addressed coverity issue with resource leaking in v4l2 app
  • Loading branch information
PanKaker authored Nov 29, 2024
1 parent e217e63 commit b7f94e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/v4l2_to_ip/v4l2_to_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,6 +1030,7 @@ static int video_alloc_buffers(struct device* dev, int nbufs, unsigned int offse

ret = ioctl(dev->fd, VIDIOC_QUERYBUF, &buf);
if (ret < 0) {
free(buffers);
printf("Unable to query buffer %u: %s (%d).\n", i, strerror(errno), errno);
return ret;
}
Expand Down

0 comments on commit b7f94e5

Please sign in to comment.