projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
zend_string'ify
[m6w6/ext-psi]
/
src
/
types
/
assert_stmt.c
diff --git
a/src/types/assert_stmt.c
b/src/types/assert_stmt.c
index 7b860d99d46aa161c92661817f2ab117b79405fe..9ded0ee9910d3669bf45e05232c7f85f8658c7ef 100644
(file)
--- a/
src/types/assert_stmt.c
+++ b/
src/types/assert_stmt.c
@@
-43,12
+43,10
@@
void psi_assert_stmt_free(struct psi_assert_stmt **stmt_ptr)
if (*stmt_ptr) {
struct psi_assert_stmt *stmt = *stmt_ptr;
if (*stmt_ptr) {
struct psi_assert_stmt *stmt = *stmt_ptr;
+ *stmt_ptr = NULL;
psi_num_exp_free(&stmt->exp);
psi_num_exp_free(&stmt->exp);
- if (stmt->token) {
- free(stmt->token);
- }
+ psi_token_free(&stmt->token);
free(stmt);
free(stmt);
- *stmt_ptr = NULL;
}
}
}
}