mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
r17867: Fix null deref in error code path. Found by the
Stanford checker.
Jeremy.
(This used to be commit 09652dc71c
)
This commit is contained in:
parent
767820e462
commit
5f925a0190
@ -182,6 +182,7 @@ REGISTRY_VALUE* dup_registry_value( REGISTRY_VALUE *val )
|
||||
DEBUG(0,("dup_registry_value: memdup() failed for [%d] bytes!\n",
|
||||
val->size));
|
||||
SAFE_FREE( copy );
|
||||
return NULL;
|
||||
}
|
||||
copy->size = val->size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user