mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
crypto/cryptodev: fix memory leak when failed to open /dev/crypto
Free the allocated fcrypt structure when opening /dev/crypto device fails, preventing memory leak. Signed-off-by: makejian <makejian@xiaomi.com>
This commit is contained in:
parent
ce982fac4c
commit
a55119ccfe
1 changed files with 1 additions and 0 deletions
|
|
@ -982,6 +982,7 @@ bail:
|
|||
kmm_free(cria.cri_key);
|
||||
}
|
||||
|
||||
free(fcrd);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue