diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-29 17:09:24 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-07-29 17:09:24 +0530 |
commit | da61b757940d9cf8a47dfca7a646e433f9437644 (patch) | |
tree | 7d4d21786aadc3c7bbcefeea677a763391caf504 /src | |
parent | 1da5a72a5e46da4e91616b74c02352c8fde36f20 (diff) |
copy: free output_path
Diffstat (limited to 'src')
-rw-r--r-- | src/copy.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5,6 +5,7 @@ #include <filehandler.h> #include <ftw.h> #include <main.h> +#include <stdlib.h> #include <string.h> #include <sys/sendfile.h> #include <sys/stat.h> @@ -42,6 +43,7 @@ copy_recursively(const char *fpath, sendfile(out_fd, in_fd, 0, size); + free(output_path); close(in_fd); close(out_fd); |