Re: [PATCH 6/7] unpack-trees: record which unpack error messages should be freed
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- May 21, 2012, 20:43 UTC
- Message-ID
- <20120521204350.GC28331@burratino>
- In-Reply-To
- <20120521145610.1911.60207.chriscool@tuxfamily.org>
Christian Couder wrote:
> "struct unpack_trees_options" has a "const char *msgs[]" field > that is setup with string values in setup_unpack_trees_porcelain().
Hmm. Incidentally, should callers (e.g., the 100 single-picks involved in a large multi-pick) be reusing these strings instead of allocating them again and again?