ead: fix resource leak in tinysrp
authorAndrea Dalla Costa <andrea@dallacosta.me>
Sat, 28 Dec 2019 20:05:16 +0000 (21:05 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 Jan 2020 18:36:46 +0000 (19:36 +0100)
commit52f0b0913d508fdbc56e5f959ece4f48779657d5
tree9a2db97b8ec60b7a381663292f2faa41d34bc1ff
parent6fba88de1913301f11163aa05298e4fb488b3640
ead: fix resource leak in tinysrp

Add call to fclose for file pointer fp in function t_openpw.
The resource leak could happen during an error handling.

Signed-off-by: Andrea Dalla Costa <andrea@dallacosta.me>
package/network/services/ead/src/tinysrp/t_pw.c