Skip to content

config: free resources of `struct config_store_data`

Martin Ågren git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 2 repliesIn review
  2. v11 patch 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3config: free resources of `struct config_store_data`config.c+9 -00 replies
2/3config: let `config_store_data_clear()` handle `value_regex`config.c+6 -110 replies
3/3config: let `config_store_data_clear()` handle `key`config.c+3 -71 reply

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchEric Sunshine
1/3
2/3Researched-by
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] config: free resources of `struct config_store_data`
Quoted 7 lines · Eric Sunshine
Quoted 5 lines · Martin Ågren

How about the following two patches as patches 2/3 and 3/3? I would also need to mention in the commit message of this patch (1/3) that the function will soon learn to clean up more members.

Quoted 7 lines

Yep, making this a multi-part patch series and updating the commit message of the patch which introduces config_store_data_clear(), as you suggest, makes sense. The patch series could be organized differently -- such as first moving freeing of 'value_regex' into new config_store_data_clear(), then freeing additional fields in later patches -- but I don't think it matters much in practice, so the current organization is likely good enough.

I tried such a re-ordering but wasn't entirely happy about the result (maybe I didn't try hard enough), so here are these patches again, as a proper series and with improved commit messages.

Martin

Martin Ågren (3):
config: free resources of struct config_store_data
config: let config_store_data_clear() handle value_regex
config: let config_store_data_clear() handle key

 config.c | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)
Signature · 1 line
2.17.0.840.g5d83f92caf