summaryrefslogtreecommitdiffstats
path: root/src/phmain.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-01-29 08:53:42 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2009-01-29 08:53:42 +0100
commit77f095422316289af374a59423e3f0ccc9602ed3 (patch)
tree0e41c6bcd5e0bba49ea3bb3c7429f05a59cab6d0 /src/phmain.c
parenta48dbbd42593f8ab889ad3fe678b5d67a2a824b7 (diff)
Fix a few memory leaks found using Coccinelle, http://www.emn.fr/x-info/coccinelle/
Diffstat (limited to 'src/phmain.c')
-rw-r--r--src/phmain.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/phmain.c b/src/phmain.c
index 6ad5e8b..f697fb5 100644
--- a/src/phmain.c
+++ b/src/phmain.c
@@ -326,7 +326,9 @@ int main( int argc, char **argv )
hd_update_all_geometry(list_disk,0,verbose);
/* Activate the cache, even if photorec has its own */
for(element_disk=list_disk;element_disk!=NULL;element_disk=element_disk->next)
- element_disk->disk=new_diskcache(element_disk->disk,testdisk_mode);
+ {
+ element_disk->disk=new_diskcache(element_disk->disk, testdisk_mode);
+ }
/* save disk parameters to rapport */
log_info("Hard disk list\n");
for(element_disk=list_disk;element_disk!=NULL;element_disk=element_disk->next)