mirror of
git://git.psyced.org/git/psyclpc
synced 2024-08-15 03:20:16 +00:00
pkg-psyc: free state
This commit is contained in:
parent
d0df37f341
commit
4f584b8342
1 changed files with 1 additions and 4 deletions
|
@ -44,10 +44,7 @@ psyc_free_state (psyc_state_t *ps) {
|
|||
pfree((void *) ps->parser);
|
||||
if (ps->packet)
|
||||
free_array(ps->packet);
|
||||
ps->name = ps->value = ps->remaining = NULL;
|
||||
ps->parser = NULL;
|
||||
ps->packet = NULL;
|
||||
ps->oper = ps->name_len = ps->value_len = ps->remaining_len = 0;
|
||||
memset(ps, 0, sizeof(psyc_state_t));
|
||||
}
|
||||
|
||||
# define PKG_PSYC_H
|
||||
|
|
Loading…
Reference in a new issue