{
char buf[BUFSIZ], tbuf[256];
char *args[3];
- struct mqelem *elem = NULL;
+ struct mqelem *elem = NULL, *elem2 = NULL;
int stat;
Put_message("");
* Private.
*/
args[0] = info[M_SUBNET];
- stat = do_mr_query("get_subnet", 1, args, StoreInfo, &elem);
+ stat = do_mr_query("get_subnet", 1, args, StoreInfo, &elem2);
if (stat)
com_err(program_name, stat, " looking up subnet info");
- else if (atoi(((char **)elem->q_data)[2]) == SNET_STATUS_PRIVATE)
+ else if (atoi(((char **)elem2->q_data)[2]) == SNET_STATUS_PRIVATE)
{
Put_message("");
sprintf(buf, "Warning: This host is on a private subnet.");
Put_message(buf);
sprintf(buf, "Billing information shown is superceded by billing information for the subnet.");
Put_message(buf);
+ FreeQueue(elem2);
}
return info[M_NAME];