Kaydet (Commit) 5a0d01ee authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#441298 use after free

Change-Id: I4fd16f157244fa3406036d0f506c32bed0cf5b8a
üst b1404ef4
...@@ -626,6 +626,7 @@ defendel(char* name, int delete) ...@@ -626,6 +626,7 @@ defendel(char* name, int delete)
if (dp->repl != NULL) /* Free the replacement */ if (dp->repl != NULL) /* Free the replacement */
free(dp->repl); /* if any, and then */ free(dp->repl); /* if any, and then */
free((char *) dp); /* Free the symbol */ free((char *) dp); /* Free the symbol */
dp = NULL;
} }
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment