summaryrefslogtreecommitdiffstats
path: root/src/fnctdsk.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-02-05 19:38:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-02-05 19:38:48 +0100
commit8a57818780811713b764f7c47e03fd261eb26220 (patch)
tree590532f2577f865fe68b4576dbbe88b50656aedb /src/fnctdsk.c
parentd8862f988e34750ab71136c78a1ede9eb1bfed05 (diff)
Use IOCTL_DISK_GET_DRIVE_GEOMETRY_EX under Windows to get disk size (Fix boggus size with some internal USB card reader)
Report disk model under Linux
Diffstat (limited to 'src/fnctdsk.c')
-rw-r--r--src/fnctdsk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fnctdsk.c b/src/fnctdsk.c
index 5c1561d..82c9c1c 100644
--- a/src/fnctdsk.c
+++ b/src/fnctdsk.c
@@ -200,8 +200,8 @@ int delete_list_disk(list_disk_t *list_disk)
write_used|=element_disk->disk->write_used;
if(element_disk->disk->clean!=NULL)
element_disk->disk->clean(element_disk->disk);
- if(element_disk->disk->device!=NULL)
- free(element_disk->disk->device);
+ free(element_disk->disk->device);
+ free(element_disk->disk->model);
free(element_disk->disk);
free(element_disk);
element_disk=element_disk_next;