MCPcopy Create free account
hub / github.com/NetHack/NetHack / regex_free

Function regex_free

sys/share/pmatchregex.c:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void
60regex_free(struct nhregex *re)
61{
62 assert(re != NULL); /* regex_free() is declared with NONNULLPTR1 */
63
64 if (re->pat)
65 free((genericptr_t) re->pat);
66 free((genericptr_t) re);
67}
68
69/*pmatchregex.c*/

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected