fix ressource leakage.

Signed-off-by: maximilian attems <[email protected]>
---
 packages/partconf/mkfstab.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/packages/partconf/mkfstab.c b/packages/partconf/mkfstab.c
index 0c5a4db..0062d0f 100644
--- a/packages/partconf/mkfstab.c
+++ b/packages/partconf/mkfstab.c
@@ -30,6 +30,7 @@ char *find_mountdevice(const char *mountpoint, char 
*default_device) {
                  && (NULL != strstr(filesystem, "loop")))
                        continue;
                if(strcasecmp(mntpoint, mountpoint) == 0) {
+                       fclose(fmounts);
                        return(strdup(filesystem));
                }
        }
-- 
1.7.2.3


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to