[sr-dev] [kamailio/kamailio] pua_reginfo: fix memory leak when usrloc is DB_ONLY (#998)

Victor Seva notifications at github.com
Fri Feb 17 10:31:06 CET 2017


As release_urecord() clearly says:

/*!
 * \brief Release urecord previously obtained through get_urecord
 * \warning Failing to calls this function after get_urecord will
 * result in a memory leak when the DB_ONLY mode is used. When
 * the records is later deleted, e.g. with delete_urecord, then
 * its not necessary, as this function already releases the record.
 * \param _r released record
 */
You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/998

-- Commit Summary --

  * pua_reginfo: fix memory leak when usrloc is DB_ONLY

-- File Changes --

    M src/modules/pua_reginfo/notify.c (2)
    M src/modules/pua_reginfo/usrloc_cb.c (3)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/998.patch
https://github.com/kamailio/kamailio/pull/998.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/998
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170217/47eb86c1/attachment.html>


More information about the sr-dev mailing list