[sr-dev] git:master:95cd1062: rtpengine: _destroy() sanity + memory free

Stefan Mititelu stefan.mititelu at 1and1.ro
Thu Dec 10 12:55:11 CET 2015


Module: kamailio
Branch: master
Commit: 95cd1062a937568322665bacd019d21fc20d57c0
URL: https://github.com/kamailio/kamailio/commit/95cd1062a937568322665bacd019d21fc20d57c0

Author: Stefan Mititelu <stefan.mititelu at 1and1.ro>
Committer: Stefan Mititelu <stefan.mititelu at 1and1.ro>
Date: 2015-12-10T13:17:42+02:00

rtpengine: _destroy() sanity + memory free

_destroy() sanity checking, with memory free, when possible:
- alloc the locks first.
- free the locks last.
- consider content already hadled for a NULL lock (or NULL lock vector).
- make _free_row_lock() static.

---

Modified: modules/rtpengine/rtpengine_hash.c
Modified: modules/rtpengine/rtpengine_hash.h

---

Diff:  https://github.com/kamailio/kamailio/commit/95cd1062a937568322665bacd019d21fc20d57c0.diff
Patch: https://github.com/kamailio/kamailio/commit/95cd1062a937568322665bacd019d21fc20d57c0.patch




More information about the sr-dev mailing list