=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/inp.c,v retrieving revision 1.38 retrieving revision 1.39 diff -u -r1.38 -r1.39 --- src/usr.bin/patch/inp.c 2014/10/08 04:06:23 1.38 +++ src/usr.bin/patch/inp.c 2014/11/15 16:35:47 1.39 @@ -1,4 +1,4 @@ -/* $OpenBSD: inp.c,v 1.38 2014/10/08 04:06:23 doug Exp $ */ +/* $OpenBSD: inp.c,v 1.39 2014/11/15 16:35:47 tobias Exp $ */ /* * patch - a program to apply diffs to original files @@ -72,13 +72,13 @@ re_input(void) { if (using_plan_a) { - i_size = 0; free(i_ptr); i_ptr = NULL; if (i_womp != NULL) { munmap(i_womp, i_size); i_womp = NULL; } + i_size = 0; } else { using_plan_a = true; /* maybe the next one is smaller */ close(tifd);