[OpenSIPS-Devel] [OpenSIPS/opensips] c72855: cfgutils: fix check_time_rec() leak

Răzvan Crainea noreply at github.com
Wed Jan 15 03:42:34 EST 2020


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c728552927134caa2391496a2ed649e3f6e60627
      https://github.com/OpenSIPS/opensips/commit/c728552927134caa2391496a2ed649e3f6e60627
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M modules/cfgutils/cfgutils.c

  Log Message:
  -----------
  cfgutils: fix check_time_rec() leak

1. The timerec should be allocated in pkg memory, there's no reason why
   it should be shared
2. After checking the timerec, the function needs to release the memory





More information about the Devel mailing list