]> gitweb.hhaalo.de Git - mv_none_space.git/commitdiff
fix free memory
authorBastian Dehn <hhaalo@arcor.de>
Thu, 2 Oct 2025 08:50:48 +0000 (10:50 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 2 Oct 2025 08:50:48 +0000 (10:50 +0200)
src/main.c

index 2e2f0b482013aa1ce0bbc1d2996cc13faa8dd8ff..ed0ee4fc6eb50aeb3e0b6f4a9fbb031cd9fd1088 100644 (file)
@@ -65,6 +65,7 @@ void rename_files(const char* dir_path, rename_func_ptr renamefunc)
        }
 
        globfree(files);
+       free(files);
        files = NULL;
        free(input);
        input = NULL;