summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavdevice/fbdev_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavdevice/fbdev_common.c b/libavdevice/fbdev_common.c
index 713e4fdeab..98f96de2af 100644
--- a/libavdevice/fbdev_common.c
+++ b/libavdevice/fbdev_common.c
@@ -121,8 +121,8 @@ int ff_fbdev_get_device_list(AVDeviceInfoList *device_list)
fail_device:
if (device) {
- av_free(device->device_name);
- av_free(device->device_description);
+ av_freep(&device->device_name);
+ av_freep(&device->device_description);
av_freep(&device);
}
if (fd >= 0)