[hackers] [sbase] grep: Don't bother free-ing the pattern list || sin
commit a3e46897430dd1037f280c8e650dfc08f0e4f822
Author: sin <sin_AT_2f30.org>
Date: Tue Dec 16 19:43:38 2014 +0000
grep: Don't bother free-ing the pattern list
diff --git a/grep.c b/grep.c
index c30174d..86b8ca5 100644
--- a/grep.c
+++ b/grep.c
_AT_@ -139,14 +139,6 @@ main(int argc, char *argv[])
fclose(fp);
}
}
- while (!SLIST_EMPTY(&phead)) {
- pnode = SLIST_FIRST(&phead);
- SLIST_REMOVE_HEAD(&phead, entry);
- if (!Fflag)
- regfree(&pnode->preg);
- free(pnode->pattern);
- free(pnode);
- }
return match;
}
Received on Tue Dec 16 2014 - 20:44:21 CET
This archive was generated by hypermail 2.3.0
: Tue Dec 16 2014 - 20:48:15 CET