utf8: release strbuf on error return in strbuf_utf8_replace()
[gitweb.git] / transport-helper.c
index 8f68d69a86bd919162b62514af0b1d1d55e204a1..519a2445835e647f036fc2cda8e66fccb6fecac1 100644 (file)
@@ -604,6 +604,7 @@ static int process_connect_service(struct transport *transport,
                        cmdbuf.buf);
 
 exit:
+       strbuf_release(&cmdbuf);
        fclose(input);
        return ret;
 }