bisect--helper: use OPT_CMDMODE instead of OPT_BOOL
[gitweb.git] / upload-pack.c
index 06d822aad2b480458263813beeecca028983a306..e25f725c0feaa57c9a09c976628217c99dfb5652 100644 (file)
@@ -888,7 +888,7 @@ static void receive_needs(void)
                }
 
        shallow_nr += shallows.nr;
-       free(shallows.objects);
+       object_array_clear(&shallows);
 }
 
 /* return non-zero if the ref is hidden, otherwise 0 */