[sr-dev] [kamailio/kamailio] usrloc: fix ucontact shared leak (#1000)

Daniel-Constantin Mierla notifications at github.com
Wed Feb 22 07:51:51 CET 2017


miconda commented on this pull request.



> @@ -1672,6 +1672,7 @@ static inline int update_contact_db(ucontact_t* _c)
  */
 int update_ucontact(struct urecord* _r, ucontact_t* _c, ucontact_info_t* _ci)
 {
+	static struct urecord _ur;

I don't see a reason to declare the variable _ur static here or in the other cases of the patch. It does not seem to be used outside of the function, so it can be declared locally (on the stack).

-- 
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/1000#pullrequestreview-23147003
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20170221/f96c265e/attachment.html>


More information about the sr-dev mailing list