[sr-dev] git:master: p_usrloc: fix compile warning, reported from Ovidiu

Henning Westerholt henning.westerholt at 1und1.de
Fri May 27 10:44:34 CEST 2011


Module: sip-router
Branch: master
Commit: 6bfc0187205fd4047e9410f3897ae980ab9a0553
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6bfc0187205fd4047e9410f3897ae980ab9a0553

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Fri May 27 10:44:13 2011 +0200

p_usrloc: fix compile warning, reported from Ovidiu

---

 modules_k/p_usrloc/udomain.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules_k/p_usrloc/udomain.c b/modules_k/p_usrloc/udomain.c
index 76bd5df..2d617c1 100644
--- a/modules_k/p_usrloc/udomain.c
+++ b/modules_k/p_usrloc/udomain.c
@@ -133,8 +133,11 @@ int new_udomain(str* _n, int _s, udomain_t** _d)
 #endif
 
 	return 0;
+
+#ifdef STATISTICS
 error2:
 	shm_free((*_d)->table);
+#endif
 error1:
 	shm_free(*_d);
 error0:




More information about the sr-dev mailing list