fix from Verstoep: free() was called twice on same arg
authorceriel <none@none>
Tue, 12 Jun 1990 10:07:00 +0000 (10:07 +0000)
committerceriel <none@none>
Tue, 12 Jun 1990 10:07:00 +0000 (10:07 +0000)
util/ack/trans.c

index e61e361..1f89179 100644 (file)
@@ -608,7 +608,8 @@ addargs(string) char *string ; {
                                l_add(curargs,keeps(in.p_path)) ;
                        } else {
                                scanlist( l_first(*comb_args), elem ) {
-                                       l_add(curargs,p_cont(*elem)->p_path) ;
+                                       l_add(curargs,
+                                             keeps(p_cont(*elem)->p_path)) ;
                                }
                        }
                        return ;