summaryrefslogtreecommitdiffstats
path: root/src/ewf.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/ewf.c
parent4699591268012128de457f172963a51ae1c681d6 (diff)
Fix memory leak when freeing device
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ewf.c b/src/ewf.c
index 591a253..e301d79 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -76,7 +76,7 @@ extern const arch_fnct_t arch_none;
static const char *fewf_description(disk_t *disk);
static const char *fewf_description_short(disk_t *disk);
-static int fewf_clean(disk_t *disk);
+static void fewf_clean(disk_t *disk);
static void *fewf_pread_fast(disk_t *disk, void *buffer, const unsigned int count, const uint64_t offset);
static int fewf_pread(disk_t *disk, void *buffer, const unsigned int count, const uint64_t offset);
static int fewf_nopwrite(disk_t *disk, const void *buffer, const unsigned int count, const uint64_t offset);
@@ -366,7 +366,7 @@ static const char *fewf_description_short(disk_t *disk)
return disk->description_short_txt;
}
-static int fewf_clean(disk_t *disk)
+static void fewf_clean(disk_t *disk)
{
if(disk->data!=NULL)
{
@@ -390,7 +390,7 @@ static int fewf_clean(disk_t *disk)
free(disk->data);
disk->data=NULL;
}
- return 0;
+ generic_clean(disk);
}
static int fewf_sync(disk_t *disk)