From 6cc8f2f834ee1613973fda0e35446fa681f18c77 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Thu, 1 Sep 2022 10:38:59 -0400 Subject: [PATCH] 2022-09-01 Fred Gleason * Fixed a bug in rdlibrary(1) that could throw a segfault when encountering an error in ripping a CD. Signed-off-by: Fred Gleason --- ChangeLog | 3 +++ lib/rddisclookup.cpp | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 410fef20..c532d7f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23241,3 +23241,6 @@ incorrect. 2022-09-01 Fred Gleason * Added CD-Text support to rdlibrary(1). +2022-09-01 Fred Gleason + * Fixed a bug in rdlibrary(1) that could throw a segfault when + encountering an error in ripping a CD. diff --git a/lib/rddisclookup.cpp b/lib/rddisclookup.cpp index e4a4ae83..f21dabc8 100644 --- a/lib/rddisclookup.cpp +++ b/lib/rddisclookup.cpp @@ -151,7 +151,6 @@ void RDDiscLookup::lookup() "\n["+QString::fromUtf8(discid_get_error_msg(lookup_disc))+"]"); discid_free(lookup_disc); lookup_disc=NULL; - discid_free(lookup_disc); return; } discRecord()->setDiscId(QString(discid_get_freedb_id(lookup_disc)).toUInt(NULL,16));