mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
avdevice/fbdev_common: Use av_freep(), avoid leaving stale pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c05310d469
commit
883f85fa8f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user