Always use the nv_free function.
Approved by: pjd (mentor)
This commit is contained in:
parent
2afcf984b3
commit
823870acb8
@ -902,8 +902,8 @@ nvlist_send(int sock, const nvlist_t *nvl)
|
||||
ret = 0;
|
||||
out:
|
||||
ERRNO_SAVE();
|
||||
free(fds);
|
||||
free(data);
|
||||
nv_free(fds);
|
||||
nv_free(data);
|
||||
ERRNO_RESTORE();
|
||||
return (ret);
|
||||
}
|
||||
@ -958,8 +958,8 @@ nvlist_recv(int sock, int flags)
|
||||
ret = nvl;
|
||||
out:
|
||||
ERRNO_SAVE();
|
||||
free(buf);
|
||||
free(fds);
|
||||
nv_free(buf);
|
||||
nv_free(fds);
|
||||
ERRNO_RESTORE();
|
||||
|
||||
return (ret);
|
||||
|
Loading…
x
Reference in New Issue
Block a user