]> git.saurik.com Git - apt.git/blobdiff - ftparchive/multicompress.h
fix memory leaks reported by -fsanitize
[apt.git] / ftparchive / multicompress.h
index 388fad22e9941276bc8a4280c0dd439b6bc134b7..161716b866de76c1476ea443c8eacf0a6bdda2c4 100644 (file)
@@ -22,7 +22,8 @@
 #include <string>
 #include <stdio.h>
 #include <sys/types.h>
-    
+#include <time.h>
+
 class MultiCompress
 {
    // An output file
@@ -47,7 +48,7 @@ class MultiCompress
    public:
    
    // The FD to write to for compression.
-   FILE *Input;
+   FileFd Input;
    unsigned long UpdateMTime;
    
    bool Finalize(unsigned long long &OutSize);