fixes mem leak

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3538 fa19cda8-b258-4bce-aa1a-843e42da0b19
Reduce chance of memory leak during creation of detached threads

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3539 fa19cda8-b258-4bce-aa1a-843e42da0b19
Suppress 'Value stored to ??? is never read' when using contrib/llvm-scan-build

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3540 fa19cda8-b258-4bce-aa1a-843e42da0b19
Only perform 'sccp reload' if sccp.conf has changed

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3541 fa19cda8-b258-4bce-aa1a-843e42da0b19
Fix loading/unloading module after changes for skipping sccp reload when sccp.conf has not changed

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3542 fa19cda8-b258-4bce-aa1a-843e42da0b19
Fix possible double free in sccp_dev_send

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3543 fa19cda8-b258-4bce-aa1a-843e42da0b19
make digit const

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3544 fa19cda8-b258-4bce-aa1a-843e42da0b19
make dial const

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3545 fa19cda8-b258-4bce-aa1a-843e42da0b19
add valid flag to speeddial

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3546 fa19cda8-b258-4bce-aa1a-843e42da0b19
add valid flag to speeddial

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3547 fa19cda8-b258-4bce-aa1a-843e42da0b19
do not alloc a new speeddial, just use the given structure

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3548 fa19cda8-b258-4bce-aa1a-843e42da0b19
change the way we handle speeddials 

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3549 fa19cda8-b258-4bce-aa1a-843e42da0b19
change the way we handle speeddials 

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3550 fa19cda8-b258-4bce-aa1a-843e42da0b19
change the way we handle speeddials 

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3551 fa19cda8-b258-4bce-aa1a-843e42da0b19
change the way we handle speeddials 

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3552 fa19cda8-b258-4bce-aa1a-843e42da0b19
Fix sem_wait looking at previously free-ed memory during threadpool_destroy

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3556 fa19cda8-b258-4bce-aa1a-843e42da0b19
Check if memory returned from REQ() is malloced correctly, before using r.

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3557 fa19cda8-b258-4bce-aa1a-843e42da0b19
Fix cleanup loop on refcount teardown

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3558 fa19cda8-b258-4bce-aa1a-843e42da0b19
Added sccp_refcount_isRunning function, so that sccp_event can check before trying to malloc new refcounted object

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3559 fa19cda8-b258-4bce-aa1a-843e42da0b19
Replaced exit(0) in sccp_threadpool_do by a return during sem_wait

git-svn-id: https://chan-sccp-b.svn.sourceforge.net/svnroot/chan-sccp-b/trunk@3560 fa19cda8-b258-4bce-aa1a-843e42da0b19