Re: [PATCH v8 0/4] Introduce libgit-rs, a Rust wrapper around libgit.a

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2025.01.29 15:24, Phillip Wood wrote:
> Hi Josh
> 
> On 28/01/2025 22:01, Josh Steadmon wrote:
> 
> Thanks for re-rolling, the range-diff looks good to me apart from
> 
> >       +void libgit_configset_free(struct libgit_config_set *cs)
> >       +{
> >      -+	git_configset_clear((struct config_set *) cs);
> >      -+	free((struct config_set *) cs);
> >      ++	git_configset_clear(&cs->cs);
> >      ++	free(&cs->cs);
> 
> Which I think should be "free(cs)". In practice it does not matter because
> we pass the same value to free() but it seems a bit odd to pass the address
> of the first member of the struct rather than the address of the struct
> itself.

Yep sorry, got a bit careless with search-and-replace. Thanks for the
catch!

> I'm looking forward to seeing this merged soon
> 
> Best Wishes
> 
> Phillip
> 




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux