[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libcdio-devel] [PATCH 3/3] Fix double-free in cd-drive.c when a device
From: |
KO Myung-Hun |
Subject: |
[Libcdio-devel] [PATCH 3/3] Fix double-free in cd-drive.c when a device name is not specified |
Date: |
Mon, 12 Dec 2016 17:17:23 +0900 |
---
src/cd-drive.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/cd-drive.c b/src/cd-drive.c
index d3819a1..7e76add 100644
--- a/src/cd-drive.c
+++ b/src/cd-drive.c
@@ -315,6 +315,8 @@ main(int argc, char *argv[])
if (p_cdio) cdio_destroy(p_cdio);
}
+ p_cdio = NULL;
+
cdio_free_device_list(ppsz_cdrives);
ppsz_cdrives = NULL;
} else {
--
2.9.2