Skip to content

Release v0.2.1

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 07 Oct 18:11
v0.2.1

v0.2.1 (2023-10-07)

New

  • Add tox plugin file, cleanup tox envs, add sdist to release. [Stephen L Arnold]

Changes

  • Bump static versions to next patch release. [Stephen L Arnold]

  • Temp workaround for unexpected coverage value from gcov. [Stephen L Arnold]

Fixes

  • More work on json.hh reference management. [S. Lockwood-Childs]

    • switch back to not take an extra reference on json_object ptr
      that gets passed in, to make things convenient for typical external
      usage of this constructor. This makes behavior match the exception
      mentioned in original comment about constructors:
      // normally want to take reference on underlying json_object*,
      // except for case of initializing from an existing raw json_object*
      // such as those returned by redis_ipc -- those start out with a reference

      which means that callers no longer need to remember to call json_object_put()
      after wrapping a raw json_object with json class

    • add a new comment right above tha constructor highlighting that
      this constructor wrapping an existing json_object does not bump
      the reference count

    • fix memory leak in operator=() by forgetting to json_object_put()
      before overwriting with a new value

  • Clean up memory leaks found with valgrind. [S. Lockwood-Childs]

    Get the test apps to pass 'valgrind --leak-check=full' without
    any leaks detected.

    • redis_ipc.c - add some missing frees

    • json.hh - fix reference management

      • get_field(): the json constructor of return value will automatically
        take a reference on the wrapped json_object, so don't need to manually
        bump reference count with json_object_get()
      • set_field() with json value: do manually take reference so the value
        object passed in will not be destroyed when the newly assigned
        parent object gets destroyed, since "add" does not bump reference
        count but later parent will try to clean it up

Other

  • Merge pull request #56 from VCTLabs/dev-workflows. [S. Lockwood-Childs]

    pre-release cleanup

  • Bump to latest upstream badge action in coverage workflow. [Stephen L Arnold]

  • Merge pull request #55 from VCTLabs/src-release. [S. Lockwood-Childs]

    bug fixes and src release

  • Add (temporary) gcov data files to .gitignore. [Stephen L Arnold]

  • Update files with static versions (needs automation) [Stephen L Arnold]

  • Merge pull request #53 from VCTLabs/dependabot/github_actions/emibcn/badge-action-2.0.1. [Steve Arnold]

    ci: bump emibcn/badge-action from 1.2.4 to 2.0.1

  • Ci: bump emibcn/badge-action from 1.2.4 to 2.0.1. [dependabot[bot]]

    Bumps emibcn/badge-action from 1.2.4 to 2.0.1.


    updated-dependencies:

    • dependency-name: emibcn/badge-action
      dependency-type: direct:production
      update-type: version-update:semver-major
      ...
  • Merge pull request #54 from VCTLabs/valgrind-fixes. [S. Lockwood-Childs]

    fix: usr: clean up memory leaks found with valgrind