]> git.sesse.net Git - betaftpd/commitdiff
get_num_files(): Fixed a memory leak (thanks, mtrace ;-) ).
authorsgunderson <sgunderson>
Sun, 17 Sep 2000 00:55:26 +0000 (00:55 +0000)
committersgunderson <sgunderson>
Sun, 17 Sep 2000 00:55:26 +0000 (00:55 +0000)
cmds.c

diff --git a/cmds.c b/cmds.c
index 422f52fc35119c5ead0b0becb22cac53f4cbe086..4f05b88018d09fb3a06f2d7694be3254d1e866c5 100644 (file)
--- a/cmds.c
+++ b/cmds.c
@@ -1294,6 +1294,8 @@ int get_num_files(struct conn * const c, const char * const pathname,
                }
        }
 
+       globfree(&pglob);
+
        return num_files;
 }