From 12767dfb5034d720c08eaf707a58e28a1d2ad60e Mon Sep 17 00:00:00 2001 From: Simon Schubert Date: Wed, 20 May 2009 17:39:59 +0200 Subject: [PATCH] undo: free temporary filename --- usr.bin/undo/undo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.bin/undo/undo.c b/usr.bin/undo/undo.c index 10f9ae9ece..1e4c2b75ee 100644 --- a/usr.bin/undo/undo.c +++ b/usr.bin/undo/undo.c @@ -267,6 +267,7 @@ doiterate(const char *filename, const char *outFileName, collect_history(fd, &error, &tse_tree); close(fd); } + free(path); } if ((fd = open(filename, O_RDONLY)) > 0) { collect_history(fd, &error, &tse_tree); -- 2.41.0