diff --git a/libtac/lib/acct_r.c b/libtac/lib/acct_r.c index bd8b9bb5..a35e068e 100644 --- a/libtac/lib/acct_r.c +++ b/libtac/lib/acct_r.c @@ -139,8 +139,7 @@ int tac_acct_read_timeout(int fd, struct areply *re, unsigned long timeout) msg = (char *)xcalloc(1, tb->msg_len + 1); memcpy(msg, (unsigned char *)tb + TAC_ACCT_REPLY_FIXED_FIELDS_SIZE, tb->msg_len); msg[(int)tb->msg_len] = '\0'; - re->msg = msg; - free(msg); + re->msg = msg; /* Freed by caller */ } /* server logged our request successfully */