--- sed/compile.c 2012/03/23 16:42:18 1.1 +++ sed/compile.c 2012/03/23 16:42:36 @@ -870,6 +870,7 @@ tail->next = NULL; sub->replacement = root.next; + free(base); } static void read_text P_((struct text_buf *buf, int leadin_ch));