Remove double free of str_bsd_path. Thanks to Peter J. Creath for

finding/fixing.
This commit is contained in:
rocky
2005-09-30 00:01:09 +00:00
parent eb90d5195b
commit b4994b8c3f

View File

@@ -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 <rocky@panix.com>
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 <cdio/logging.h>
#include <cdio/sector.h>
@@ -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 );