diff options
Diffstat (limited to 'src/providers/ldap/sdap_async.c')
-rw-r--r-- | src/providers/ldap/sdap_async.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_async.c b/src/providers/ldap/sdap_async.c index 7fc04a64..84da288a 100644 --- a/src/providers/ldap/sdap_async.c +++ b/src/providers/ldap/sdap_async.c @@ -863,7 +863,7 @@ static void sdap_get_generic_done(struct sdap_op *op, struct sdap_get_generic_state *state = tevent_req_data(req, struct sdap_get_generic_state); struct sysdb_attrs *attrs; - char *errmsg; + char *errmsg = NULL; int result; int ret; @@ -917,6 +917,7 @@ static void sdap_get_generic_done(struct sdap_op *op, DEBUG(2, ("Unexpected result from ldap: %s(%d), %s\n", ldap_err2string(result), result, errmsg)); } + ldap_memfree(errmsg); tevent_req_done(req); return; |