fix crash from double free of name for bug #501760 * pattern.c: fix crash from double free of name for bug #501760 svn path=/trunk/; revision=3667