Fix memory leak on error path in md5_printf

This commit is contained in:
Alex Henrie 2021-07-20 13:52:53 -06:00 committed by Aditya Patwardhan
parent b2a9dc283b
commit f1ba2b3e3a

View File

@ -51,6 +51,7 @@ static int md5_printf(char *md, const char *fmt, ...)
va_start(ap, fmt);
len = vasprintf((char **)&buf, fmt, ap);
if (buf == NULL) {
va_end(ap);
return ESP_FAIL;
}