add free
This commit is contained in:
parent
40da5fbcda
commit
c5c5fffec2
@ -192,10 +192,7 @@ parse_pair(char const * buf, size_t len)
|
|||||||
case CHANNEL: creds.channel = strndup(buf,x); break;
|
case CHANNEL: creds.channel = strndup(buf,x); break;
|
||||||
case SERVER: creds.server = strndup(buf,x); break;
|
case SERVER: creds.server = strndup(buf,x); break;
|
||||||
case PORT: creds.port = atoi(buf); break;
|
case PORT: creds.port = atoi(buf); break;
|
||||||
|
case ADMINS: parse_admins(strndup(buf,x)); break;
|
||||||
case ADMINS:
|
|
||||||
parse_admins(strndup(buf,x));
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (x + 2 < len)
|
if (x + 2 < len)
|
||||||
{ buf += x + 1; }
|
{ buf += x + 1; }
|
||||||
@ -272,4 +269,5 @@ creds_free_rest(void)
|
|||||||
/* FULL_FREE(creds.password); */
|
/* FULL_FREE(creds.password); */
|
||||||
FULL_FREE(creds.channel);
|
FULL_FREE(creds.channel);
|
||||||
FULL_FREE(creds.server);
|
FULL_FREE(creds.server);
|
||||||
|
FULL_FREE(creds.admins);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user