summaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-19 19:25:18 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-19 19:25:18 +0200
commitbf83ac26623fc2743ec041b8f502636074ffe69c (patch)
tree85f199a84587f11355345dc9024db56e2e01c252 /src/msdos.c
parent4699591268012128de457f172963a51ae1c681d6 (diff)
Fix memory leak when freeing device
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msdos.c b/src/msdos.c
index acdf076..30565e6 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -60,7 +60,7 @@ static int disk_pread(disk_t *disk_car, void *buf, const unsigned int count, con
static int disk_pwrite(disk_t *disk_car, const void *buf, const unsigned int count, const uint64_t hd_offset);
static int disk_nopwrite(disk_t *disk_car, const void *buf, const unsigned int count, const uint64_t offset);
static int disk_sync(disk_t *disk_car);
-static int disk_clean(disk_t *disk_car);
+static void disk_clean(disk_t *disk_car);
static int cmd_dos_segment = 0;
static int cmd_dos_selector = 0;
@@ -542,7 +542,7 @@ static int disk_sync(disk_t *disk_car)
return -1;
}
-static int disk_clean(disk_t *disk_car)
+static void disk_clean(disk_t *disk_car)
{
/*
if(disk_car->data!=NULL)
@@ -550,7 +550,7 @@ static int disk_clean(disk_t *disk_car)
struct info_disk_struct *data=disk_car->data;
}
*/
- return generic_clean(disk_car);
+ generic_clean(disk_car);
}
static int hd_report_error(disk_t *disk_car, const uint64_t hd_offset, const unsigned int count, const int rc)