mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
r13884: Fix coverity CID #95. Resource leak on error path.
Jeremy. (This used to be commit f4bf550b5757024b41062784b185b52a1a0e11f4)
This commit is contained in:
parent
9bb215fe68
commit
4c0bf8d75d
@ -536,6 +536,8 @@ void queue_wins_refresh(struct nmb_name *nmbname,
|
||||
|
||||
userdata = (struct userdata_struct *)SMB_MALLOC(sizeof(*userdata) + strlen(tag) + 1);
|
||||
if (!userdata) {
|
||||
p->locked = False;
|
||||
free_packet(p);
|
||||
DEBUG(0,("Failed to allocate userdata structure!\n"));
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user