mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
Fix memory leak on error path in md5_printf
This commit is contained in:
parent
f88a2f10c2
commit
b07ad7a08d
@ -43,6 +43,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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user