Skip to content

Commit

Permalink
main: fix wrong resource destruction in tokenReadFull
Browse files Browse the repository at this point in the history
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
  • Loading branch information
masatake committed Dec 28, 2016
1 parent c775c46 commit eae910f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/tokeninfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void tokenReadFull (tokenInfo *token, void *data)
tokenInfo *backlog = ptrArrayLast (token->klass->backlog);
tokenCopyFull (token, backlog, data);
ptrArrayRemoveLast (token->klass->backlog);
tokenDestroy (token);
tokenDestroy (backlog);
}
else
token->klass->read (token, data);
Expand Down

0 comments on commit eae910f

Please sign in to comment.