1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

HLS: Fix memory leak

This commit is contained in:
winlin 2020-08-20 11:42:05 +08:00
parent 6bc83e1041
commit 0716fb4be2

View file

@ -1225,6 +1225,7 @@ srs_error_t SrsComplexHandshake::handshake_with_client(SrsHandshakeBytes* hs_byt
} }
// verify s2 // verify s2
if ((err = s2.s2_validate(&c1, is_valid)) != srs_success || !is_valid) { if ((err = s2.s2_validate(&c1, is_valid)) != srs_success || !is_valid) {
srs_freep(err);
return srs_error_new(ERROR_RTMP_TRY_SIMPLE_HS, "verify s2 failed, try simple handshake"); return srs_error_new(ERROR_RTMP_TRY_SIMPLE_HS, "verify s2 failed, try simple handshake");
} }