From b4994b8c3f5f293dfd83cbec920249213140156b Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 30 Sep 2005 00:01:09 +0000 Subject: [PATCH] Remove double free of str_bsd_path. Thanks to Peter J. Creath for finding/fixing. --- lib/driver/osx.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/driver/osx.c b/lib/driver/osx.c index 7155942d..080b91d7 100644 --- a/lib/driver/osx.c +++ b/lib/driver/osx.c @@ -1,5 +1,5 @@ /* - $Id: osx.c,v 1.3 2005/04/23 01:16:19 rocky Exp $ + $Id: osx.c,v 1.4 2005/09/30 00:01:09 rocky Exp $ Copyright (C) 2003, 2004, 2005 Rocky Bernstein from vcdimager code: @@ -34,7 +34,7 @@ #include "config.h" #endif -static const char _rcsid[] = "$Id: osx.c,v 1.3 2005/04/23 01:16:19 rocky Exp $"; +static const char _rcsid[] = "$Id: osx.c,v 1.4 2005/09/30 00:01:09 rocky Exp $"; #include #include @@ -1632,8 +1632,10 @@ cdio_get_devices_osx(void) IOObjectRelease( media_iterator ); cdio_add_device_list(&drives, strdup(psz_buf), &num_drives); } - - CFRelease( str_bsd_path ); + else + { + CFRelease( str_bsd_path ); + } IOObjectRelease( next_media ); } while( ( next_media = IOIteratorNext( media_iterator ) ) != 0 );