=================================================================== RCS file: /cvs/mandoc/Attic/apropos.c,v retrieving revision 1.34 retrieving revision 1.35 diff -u -p -r1.34 -r1.35 --- mandoc/Attic/apropos.c 2013/07/05 09:33:02 1.34 +++ mandoc/Attic/apropos.c 2013/12/27 18:51:25 1.35 @@ -1,4 +1,4 @@ -/* $Id: apropos.c,v 1.34 2013/07/05 09:33:02 schwarze Exp $ */ +/* $Id: apropos.c,v 1.35 2013/12/27 18:51:25 schwarze Exp $ */ /* * Copyright (c) 2012 Kristaps Dzonsons * @@ -96,7 +96,9 @@ main(int argc, char *argv[]) goto usage; for (i = 0; i < sz; i++) { - printf("%s - %s\n", res[i].file, res[i].desc); + printf("%s - %s\n", res[i].names, res[i].desc); + free(res[i].file); + free(res[i].names); free(res[i].desc); }