X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmountd.git;a=blobdiff_plain;f=mount.c;fp=mount.c;h=92606da32d155fa7cca87a258b04bbe70b6ded8f;hp=a7f1862f2747919090da85c2c4fcc140ae282463;hb=01bb2b09b1d34bec5841a3fa27e7a8696dcba869;hpb=dd5799c9f8cc7a01c0572c067bf907b37cdd7d04 diff --git a/mount.c b/mount.c index a7f1862..92606da 100644 --- a/mount.c +++ b/mount.c @@ -174,7 +174,6 @@ static int mount_check_disc(char *disc) if(!fp) { log_printf("error reading /proc/mounts"); - fclose(fp); return avail; } while((fgets(tmp, 256, fp) != NULL) && (avail == -1)) @@ -615,7 +614,6 @@ static void mount_check_mount_list(void) if(!fp) { log_printf("error reading /proc/mounts"); - fclose(fp); return; } mounted_count = 0;