lib:replace: Do not leak the file pointer in rep_getprogname()
authorAndreas Schneider <asn@samba.org>
Mon, 12 Nov 2018 14:31:09 +0000 (15:31 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 13 Nov 2018 06:37:25 +0000 (07:37 +0100)
commit7a9d003d01adebaf089ca975b04b9d8d4e7640a2
treec3c7d682937416b0c232a1e3e298c66251db0e11
parent716715496c4744ffe2565f0c1c99335ea1f53867
lib:replace: Do not leak the file pointer in rep_getprogname()

And return NULL on error.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
lib/replace/replace.c