[OpenSIPS-Devel] [OpenSIPS/opensips] 4de3e3: qrouting: Improve code quality [part 1]

Liviu Chircu noreply at github.com
Wed Feb 5 08:47:03 EST 2020


  Branch: refs/heads/feature/qrouting
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 4de3e3c487b5e6e64fc832b81487f4542de8886a
      https://github.com/OpenSIPS/opensips/commit/4de3e3c487b5e6e64fc832b81487f4542de8886a
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2020-02-05 (Wed, 05 Feb 2020)

  Changed paths:
    M modules/qrouting/qr_stats.c
    M modules/qrouting/qrouting.c

  Log Message:
  -----------
  qrouting: Improve code quality [part 1]

    * fix some SHM leaks
    * avoid redundant zero initializations (either globally or on stack)
    * avoid redundant pointer resets to NULL after a shm_free().  If
      there's a double free, all modern OpenSIPS debugging allocators
      will detect it anyway
    * eliminate free_history(), just use shm_free_all()
    * normalize coding style





More information about the Devel mailing list