Skip to content

Commit

Permalink
Merge pull request #1250 from masatake/fix-wrong-resource-destruction…
Browse files Browse the repository at this point in the history
…-in-tokenReadFull

main: fix wrong resource destruction in tokenReadFull
  • Loading branch information
masatake committed Dec 28, 2016
2 parents c775c46 + eae910f commit 6e839be
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 6e839be

Please sign in to comment.