mirror of
https://github.com/openharmony/third_party_NuttX.git
synced 2026-07-01 08:17:34 -04:00
!170 Description: nfs_bind存在内存泄露风险
Merge pull request !170 from hw_llm/master
This commit is contained in:
@@ -563,6 +563,7 @@ int nfs_bind(struct Vnode *blkdriver, const void *data,
|
||||
error = pthread_mutex_init(&nmp->nm_mux, &attr);
|
||||
if (error)
|
||||
{
|
||||
free(nmp);
|
||||
return -error;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user