builtin/rev-parse: convert to struct object_id
[gitweb.git] / builtin / replace.c
index 065515bababe99ad04249065822584a3f2a0af69..ab17668f4330a5e688d423a60c138768b9955e1b 100644 (file)
@@ -120,6 +120,7 @@ static int for_each_replace_name(const char **argv, each_replace_name_fn fn)
                if (fn(full_hex, ref.buf, &oid))
                        had_error = 1;
        }
+       strbuf_release(&ref);
        return had_error;
 }