RPA Toolkit
Added support for number of occurrences
[rpatk.git] / rexgrep / unix / main.c
index 86739bf..1f2ece3 100644 (file)
@@ -331,7 +331,7 @@ end:
        }
        r_object_destroy((robject_t*)buffers);
        ret = pGrep->ret;
-       if (pGrep->showtime) {
+       if (pGrep->showtime && pGrep->dfa) {
                rexdfa_t *dfa = pGrep->dfa;
                unsigned long sizestates = dfa->nstates * sizeof(rexdfs_t);
                unsigned long sizetrans = dfa->ntrans * sizeof(rexdft_t);