From 0a237dc77857bb1cfb789305dda1723f2580d954 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 1 Oct 2012 09:53:52 -0700 Subject: [PATCH] don't use free'd string --- lib/kadm5/ipropd_master.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/kadm5/ipropd_master.c b/lib/kadm5/ipropd_master.c index 8ade7b2e2..8e7cc3c30 100644 --- a/lib/kadm5/ipropd_master.c +++ b/lib/kadm5/ipropd_master.c @@ -470,12 +470,13 @@ send_complete (krb5_context context, slave *s, const char *database, } fd = open(dfn, O_CREAT|O_RDWR, 0600); - free(dfn); if (fd == -1) { ret = errno; krb5_warn(context, ret, "Cannot open/create iprop dumpfile %s", dfn); + free(dfn); return ret; } + free(dfn); dump = krb5_storage_from_fd(fd); if (!dump) { -- 2.11.4.GIT