]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport.c
refs: unify parse_worktree_ref() and ref_type()
[thirdparty/git.git] / transport.c
index 24540f642a49e8a8707d0e9ca3a7c8ea83dbb2f0..1687ad7e2c66c23b6c488ac7d82117828d23dfc9 100644 (file)
@@ -142,7 +142,7 @@ static void get_refs_from_bundle_inner(struct transport *transport)
 
 static struct ref *get_refs_from_bundle(struct transport *transport,
                                        int for_push,
-                                       struct transport_ls_refs_options *transport_options)
+                                       struct transport_ls_refs_options *transport_options UNUSED)
 {
        struct bundle_transport_data *data = transport->data;
        struct ref *result = NULL;
@@ -895,6 +895,7 @@ static int disconnect_git(struct transport *transport)
                finish_connect(data->conn);
        }
 
+       list_objects_filter_release(&data->options.filter_options);
        free(data);
        return 0;
 }