Remove double free of str_bsd_path. Thanks to Peter J. Creath for
finding/fixing.
This commit is contained in:
@@ -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>
|
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
||||||
from vcdimager code:
|
from vcdimager code:
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif
|
#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/logging.h>
|
||||||
#include <cdio/sector.h>
|
#include <cdio/sector.h>
|
||||||
@@ -1632,8 +1632,10 @@ cdio_get_devices_osx(void)
|
|||||||
IOObjectRelease( media_iterator );
|
IOObjectRelease( media_iterator );
|
||||||
cdio_add_device_list(&drives, strdup(psz_buf), &num_drives);
|
cdio_add_device_list(&drives, strdup(psz_buf), &num_drives);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
CFRelease( str_bsd_path );
|
CFRelease( str_bsd_path );
|
||||||
|
}
|
||||||
IOObjectRelease( next_media );
|
IOObjectRelease( next_media );
|
||||||
|
|
||||||
} while( ( next_media = IOIteratorNext( media_iterator ) ) != 0 );
|
} while( ( next_media = IOIteratorNext( media_iterator ) ) != 0 );
|
||||||
|
|||||||
Reference in New Issue
Block a user