Commit 03541f3a authored by jehan's avatar jehan

fix crypto_config memory leak

parent 29775739
......@@ -83,6 +83,8 @@ static int http_before_all(void) {
belle_tls_crypto_config_t *crypto_config=belle_tls_crypto_config_new();
belle_tls_crypto_config_set_root_ca(crypto_config,belle_sip_tester_get_root_ca_path());
belle_http_provider_set_tls_crypto_config(prov,crypto_config);
belle_sip_object_unref(crypto_config);
}
return 0;
}
......
......@@ -206,6 +206,7 @@ int register_before_all(void) {
}
belle_sip_tls_listening_point_set_crypto_config(BELLE_SIP_TLS_LISTENING_POINT(lp), crypto_config);
belle_sip_provider_add_listening_point(prov,lp);
belle_sip_object_unref(crypto_config);
}
listener_callbacks.process_dialog_terminated=process_dialog_terminated;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment