summaryrefslogtreecommitdiffstats
path: root/ctok.c
diff options
context:
space:
mode:
Diffstat (limited to 'ctok.c')
-rw-r--r--ctok.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ctok.c b/ctok.c
index 716fdefc..3d0b55f7 100644
--- a/ctok.c
+++ b/ctok.c
@@ -266,8 +266,7 @@ dbgprintf("var, var is: '%s'\n", rsCStrGetSzStr(pToken->pstrVal));
finalize_it:
if(iRet != RS_RET_OK) {
if(pToken->pstrVal != NULL) {
- rsCStrDestruct(pToken->pstrVal);
- pToken->pstrVal = NULL;
+ rsCStrDestruct(&pToken->pstrVal);
}
}
@@ -315,8 +314,7 @@ dbgprintf("simpstr, str is: '%s'\n", rsCStrGetSzStr(pToken->pstrVal));
finalize_it:
if(iRet != RS_RET_OK) {
if(pToken->pstrVal != NULL) {
- rsCStrDestruct(pToken->pstrVal);
- pToken->pstrVal = NULL;
+ rsCStrDestruct(&pToken->pstrVal);
}
}