summaryrefslogtreecommitdiffstats
path: root/src/sbus/sssd_dbus_introspect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sbus/sssd_dbus_introspect.c')
-rw-r--r--src/sbus/sssd_dbus_introspect.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sbus/sssd_dbus_introspect.c b/src/sbus/sssd_dbus_introspect.c
index c8e8c97a1..f310aeb74 100644
--- a/src/sbus/sssd_dbus_introspect.c
+++ b/src/sbus/sssd_dbus_introspect.c
@@ -58,6 +58,10 @@ struct introspect_ctx {
static int introspect_ctx_destructor(struct introspect_ctx *ictx)
{
+ if (ictx->f) {
+ fclose(ictx->f);
+ }
+
free(ictx->buf);
ictx->buf = NULL;
return 0;