Merge branch 'js/completion-hide-not-a-repo'
[gitweb.git] / builtin / prune-packed.c
index fcf5fb6129c05156c7fd7bbb22ac380dbd0b3245..d430731d701d7a06e1da0d8273c03453b85dcf96 100644 (file)
@@ -46,7 +46,7 @@ void prune_packed_objects(int opts)
 
        strbuf_addstr(&pathname, dir);
        if (opts & PRUNE_PACKED_VERBOSE)
-               progress = start_progress_delay("Removing duplicate objects",
+               progress = start_progress_delay(_("Removing duplicate objects"),
                        256, 95, 2);
 
        if (pathname.len && pathname.buf[pathname.len - 1] != '/')
@@ -68,6 +68,7 @@ void prune_packed_objects(int opts)
                rmdir(pathname.buf);
        }
        stop_progress(&progress);
+       strbuf_release(&pathname);
 }
 
 int cmd_prune_packed(int argc, const char **argv, const char *prefix)