While I was fixing a few compiler warnings in zcond_regex_match(), I noticed that regfree() could be called on an uninitialized regex_t if the "id" value passed in to the function was invalid. Attached is one possible fix. ..wayne..