| author | Thomas Jarosch <thomas.jarosch@intra2net.com> | 2011-10-05 20:15:17 (GMT) |
|---|---|---|
| committer | Danny Kukawka <danny.kukawka@web.de> | 2011-10-30 12:42:02 (GMT) |
| commit | 08e7d577151227199fc7c83a4a917ea1b922b14d (patch) (side-by-side diff) | |
| tree | 95da45d22bf5177fbba1aeac5f45178f6067a17f | |
| parent | 38cb713132a60758b07380c8d555c61d06eb0195 (diff) | |
| download | hal-master.zip hal-master.tar.gz | |
Detected by "cppcheck"
Please CC: comments.
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
| -rw-r--r-- | hald/freebsd/probing/freebsd_dvd_rw_utils.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hald/freebsd/probing/freebsd_dvd_rw_utils.c b/hald/freebsd/probing/freebsd_dvd_rw_utils.c index c004916..130d8a3 100644 --- a/hald/freebsd/probing/freebsd_dvd_rw_utils.c +++ b/hald/freebsd/probing/freebsd_dvd_rw_utils.c @@ -45,7 +45,7 @@ scsi_command_new_from_cdrom (HFPCDROM *cdrom) static void scsi_command_free (ScsiCommand * cmd) { - free (cmd); + g_free (cmd); } static void @@ -107,7 +107,7 @@ get_dvd_r_rw_profile (HFPCDROM *cdrom) if (scsi_command_transport (cmd, READ, list, len)) { /* GET CONFIGURATION failed */ scsi_command_free (cmd); - free (list); + g_free (list); return -1; } @@ -170,7 +170,7 @@ get_dvd_r_rw_profile (HFPCDROM *cdrom) } scsi_command_free (cmd); - free (list); + g_free (list); return retval; @@ -230,7 +230,7 @@ pull_page2a_from_cdrom (HFPCDROM *cdrom) if (scsi_command_transport (cmd, READ, page2A, len)) { /* MODE SENSE failed */ scsi_command_free (cmd); - free (page2A); + g_free (page2A); return NULL; } @@ -330,7 +330,7 @@ get_write_speeds (const unsigned char *p, int length, int max_speed) } free_tmpspeeds: - free (tmpspeeds); + g_free (tmpspeeds); return result; } @@ -462,7 +462,7 @@ get_disc_capacity_cdr (HFPCDROM *cdrom, guint64 *size) if (scsi_command_transport (cmd, READ, atip, len)) { /* READ TOC failed */ - free (atip); + g_free (atip); goto done; } @@ -473,7 +473,7 @@ get_disc_capacity_cdr (HFPCDROM *cdrom, guint64 *size) } retval = 0; - free (atip); + g_free (atip); done: scsi_command_free (cmd); |
