summaryrefslogtreecommitdiffstats
path: root/src/ewf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-08-23 16:01:55 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-08-23 16:01:55 +0200
commit90f2b63eac56a8c5dfb8d6471f817b3f9c9ecdc0 (patch)
tree5397292a9a47fd7eba91c3913f4fd396e0dccecc /src/ewf.c
parent643d625772c17a9467512f050b95e81b83b8594c (diff)
Code cleanup
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ewf.c b/src/ewf.c
index ed06841..6174b0a 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -199,11 +199,8 @@ static int fewf_clean(disk_t *disk)
{
struct info_fewf_struct *data=(struct info_fewf_struct *)disk->data;
libewf_close(data->handle);
- if(data->buffer!=NULL)
- {
- free(data->buffer);
- data->buffer=NULL;
- }
+ free(data->buffer);
+ data->buffer=NULL;
free(disk->data);
disk->data=NULL;
}