=================================================================
==18031==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1024 byte(s) in 1 object(s) allocated from:
    #0 0x7f6764d50518 in calloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9518)
    #1 0x55d581beefc2 in gcs_auth_request test/../gcs.c:316
    #2 0x55d581bef64f in gcs_refresh_authorization test/../gcs.c:118
    #3 0x55d581befc4e in gcs_config_profile test/../gcs.c:272
    #4 0x55d581be9e74 in main test/test_gcs.c:127
    #5 0x7f676387409a in __libc_start_main ../csu/libc-start.c:308

Direct leak of 826 byte(s) in 1 object(s) allocated from:
    #0 0x7f6764d50720 in __interceptor_realloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9720)
    #1 0x7f67642b9624 in switch_string_replace src/switch_utils.c:2919
    #2 0x55d581bef610 in gcs_refresh_authorization test/../gcs.c:116
    #3 0x55d581befc4e in gcs_config_profile test/../gcs.c:272
    #4 0x55d581be9e74 in main test/test_gcs.c:127
    #5 0x7f676387409a in __libc_start_main ../csu/libc-start.c:308

Direct leak of 343 byte(s) in 1 object(s) allocated from:
    #0 0x7f6764d50330 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
    #1 0x55d581bef535 in gcs_refresh_authorization test/../gcs.c:111
    #2 0x55d581befc4e in gcs_config_profile test/../gcs.c:272
    #3 0x55d581be9e74 in main test/test_gcs.c:127
    #4 0x7f676387409a in __libc_start_main ../csu/libc-start.c:308

Direct leak of 19 byte(s) in 1 object(s) allocated from:
    #0 0x7f6764d50330 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
    #1 0x55d581bf0105 in gcs_config_profile test/../gcs.c:225
    #2 0x55d581be9e74 in main test/test_gcs.c:127
    #3 0x7f676387409a in __libc_start_main ../csu/libc-start.c:308

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f6764d50330 in __interceptor_malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0xe9330)
    #1 0x7f6763fa4809  (/usr/lib/x86_64-linux-gnu/libcurl.so.4+0x45809)

Indirect leak of 48 byte(s) in 1 object(s) allocated from:
    #0 0x7f6764ca1810 in strdup (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x3a810)
    #1 0x7f6763fa4864 in curl_slist_append (/usr/lib/x86_64-linux-gnu/libcurl.so.4+0x45864)

SUMMARY: AddressSanitizer: 2276 byte(s) leaked in 6 allocation(s).