Skip to content

Commit 6e839be

Browse files
authored
Merge pull request #1250 from masatake/fix-wrong-resource-destruction-in-tokenReadFull
main: fix wrong resource destruction in tokenReadFull
2 parents c775c46 + eae910f commit 6e839be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/tokeninfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void tokenReadFull (tokenInfo *token, void *data)
9696
tokenInfo *backlog = ptrArrayLast (token->klass->backlog);
9797
tokenCopyFull (token, backlog, data);
9898
ptrArrayRemoveLast (token->klass->backlog);
99-
tokenDestroy (token);
99+
tokenDestroy (backlog);
100100
}
101101
else
102102
token->klass->read (token, data);

0 commit comments

Comments
 (0)