transport-helper: release strbuf after use in process_connect_service()
[gitweb.git] / builtin / pack-redundant.c
index 72c815844dd2abe7f2b4bc5a641eb692d2a45103..aaa8136322244ccde5b7d6804a3bc09b0c053568 100644 (file)
@@ -7,6 +7,7 @@
 */
 
 #include "builtin.h"
+#include "packfile.h"
 
 #define BLKSIZE 512
 
@@ -442,6 +443,7 @@ static void minimize(struct pack_list **min)
        /* return if there are no objects missing from the unique set */
        if (missing->size == 0) {
                *min = unique;
+               free(missing);
                return;
        }