1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

r13884: Fix coverity CID #95. Resource leak on error path.

Jeremy.
This commit is contained in:
Jeremy Allison 2006-03-06 19:30:34 +00:00 committed by Gerald (Jerry) Carter
parent 95ef857c89
commit f4bf550b57

View File

@ -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;
}