mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
FS-9775: Fixed building libblade with address sanitizing support
This commit is contained in:
parent
aaa13f3ba6
commit
42bfcc3d46
@ -241,11 +241,9 @@ AC_ARG_ENABLE(address_sanitizer,
|
|||||||
[enable_address_sanitizer="no"])
|
[enable_address_sanitizer="no"])
|
||||||
|
|
||||||
if test "${enable_address_sanitizer}" = "yes"; then
|
if test "${enable_address_sanitizer}" = "yes"; then
|
||||||
if test "x${ax_cv_c_compiler_vendor}" = "xclang" ; then
|
AM_CFLAGS="${AM_CFLAGS} -fsanitize=address -fno-omit-frame-pointer"
|
||||||
AM_CFLAGS="${AM_CFLAGS} -fsanitize=address -fno-omit-frame-pointer"
|
AM_CXXFLAGS="${AM_CXXFLAGS} -fsanitize=address -fno-omit-frame-pointer"
|
||||||
AM_CXXFLAGS="${AM_CXXFLAGS} -fsanitize=address -fno-omit-frame-pointer"
|
AM_LDFLAGS="${AM_LDFLAGS} -fsanitize=address"
|
||||||
AM_LDFLAGS="${AM_LDFLAGS} -fsanitize=address"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_ARG_WITH([libks],
|
AC_ARG_WITH([libks],
|
||||||
|
@ -60,7 +60,7 @@ KS_DECLARE(ks_status_t) blade_peer_destroy(blade_peer_t **bpP)
|
|||||||
flags = bp->flags;
|
flags = bp->flags;
|
||||||
pool = bp->pool;
|
pool = bp->pool;
|
||||||
|
|
||||||
ks_pool_free(bp->pool, bp);
|
ks_pool_free(bp->pool, &bp);
|
||||||
|
|
||||||
if (pool && (flags & BP_MYPOOL)) {
|
if (pool && (flags & BP_MYPOOL)) {
|
||||||
ks_pool_close(&pool);
|
ks_pool_close(&pool);
|
||||||
|
@ -63,7 +63,7 @@ KS_DECLARE(ks_status_t) blade_handle_destroy(blade_handle_t **bhP)
|
|||||||
|
|
||||||
blade_peer_destroy(&bh->peer);
|
blade_peer_destroy(&bh->peer);
|
||||||
|
|
||||||
ks_pool_free(bh->pool, bh);
|
ks_pool_free(bh->pool, &bh);
|
||||||
|
|
||||||
if (pool && (flags & BH_MYPOOL)) {
|
if (pool && (flags & BH_MYPOOL)) {
|
||||||
ks_pool_close(&pool);
|
ks_pool_close(&pool);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user