ossp-pkg/lmtp2nntp/lmtp2nntp_main.c 1.73 -> 1.74
--- lmtp2nntp_main.c 2003/02/11 15:31:18 1.73
+++ lmtp2nntp_main.c 2003/02/12 15:55:49 1.74
@@ -1231,7 +1231,7 @@
lmtp_res_t res;
lmtp_rc_t rc;
lmtp2nntp_t *ctx = (lmtp2nntp_t *)_ctx;
- char *cp;
+ char *cp = NULL;
char *group;
logbook(ctx->l2, L2_LEVEL_INFO, "LMTP service executing RCPT command < %s", req->msg);
@@ -1314,6 +1314,8 @@
CU(LMTP_OK);
CUS:
+ if (cp != NULL)
+ free(cp);
lmtp_response(lmtp, &res);
return rc;
}
@@ -1691,6 +1693,7 @@
}
else {
str_copy(errorstring, res_ptr, sizeof(errorstring) < res_len ? sizeof(errorstring) : res_len);
+ free(res_ptr);
}
argz_add(&azErr, &asErr, errorstring);
}
|
|