summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sss_client/nss_mc_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sss_client/nss_mc_common.c b/src/sss_client/nss_mc_common.c
index f777890a..78490bef 100644
--- a/src/sss_client/nss_mc_common.c
+++ b/src/sss_client/nss_mc_common.c
@@ -222,6 +222,7 @@ errno_t sss_nss_mc_get_record(struct sss_cli_mc_ctx *ctx,
if (!MC_CHECK_RECORD_LENGTH(ctx, rec)) {
/* record has invalid length */
+ free(copy_rec);
return EINVAL;
}