s4:samba_dnsupdate: Avoid resource leaks
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 20 Feb 2023 22:45:11 +0000 (11:45 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 3 Mar 2023 01:07:36 +0000 (01:07 +0000)
commitfdc5f6ee9950add6c0e357c636ab571663feee9b
tree0a86614cd4cad21b1935f16157df03abadadb0db
parent0d8836482a16607fd7f66adc6c315a52028393b0
s4:samba_dnsupdate: Avoid resource leaks

View with 'git show -b'.

The seek(0) call is unnecessary.

Closing a file removes the lock held on it.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/bin/samba_dnsupdate