mirror of
https://github.com/linux-msm/qmic.git
synced 2024-11-23 09:44:06 +08:00
QMI IDL compiler
405e4e2b01
If token_accept() is provided a null token pointer argument, the previous "current" token is discarded. If the token matched is a symbol type, the token string (which will have been dynamically allocated in yylex()) will be leaked. Fix this by freeing the current token string if token pointer passed is null. The compiler warns when we attempt to free a pointer to constant data, so change the type of the string pointer in the symbol structure to be pointer to non-constant. Signed-off-by: Alex Elder <elder@linaro.org> Message-Id: <20211001232338.769309-5-elder@linaro.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> |
||
---|---|---|
.gitignore | ||
accessor.c | ||
kernel.c | ||
LICENSE | ||
list.h | ||
Makefile | ||
parser.c | ||
qmi_tlv.c | ||
qmic.c | ||
qmic.h |