Commit c1112618 authored by Bastien Nocera's avatar Bastien Nocera

aeslib: Fix use-after-free in aeslib

If a USB transfer is started but not completed in one go, the wdata we
pass to continue_write_regv() will already be freed by the time we try
to use it again.

Only free() the wdata on error, or when the USB transfer is completed.

Closes: #180
parent 658c301e
Pipeline #54778 passed with stages
in 2 minutes and 38 seconds