summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--v4l2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/v4l2.c b/v4l2.c
index 81ff90e..3baf55b 100644
--- a/v4l2.c
+++ b/v4l2.c
@@ -329,6 +329,7 @@ void v4l2_close(struct v4l2_device *dev)
free(dev->name);
close(dev->fd);
+ free(dev);
}
/* -----------------------------------------------------------------------------