Free any existing SRTP connection profile
[openssl.git] / ssl / d1_srtp.c
index f969fb10b11e493afba2b1698cea7147c502d206..e49aea9be1e4bf5866d47834c1b976819e1e4375 100644 (file)
@@ -197,6 +197,8 @@ static int ssl_ctx_make_profiles(const char *profiles_string,
             ptr = col + 1;
     } while (col);
 
             ptr = col + 1;
     } while (col);
 
+    sk_SRTP_PROTECTION_PROFILE_free(*out);
+
     *out = profiles;
 
     return 0;
     *out = profiles;
 
     return 0;