From f860f2d2c17c4d55b0bf0ad61e03c39f4ce825f3 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 11 Jan 2018 15:45:16 +0100 Subject: msed: sed: free h and v --- msed.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/msed.c b/msed.c index 1944791..bdef9d4 100644 --- a/msed.c +++ b/msed.c @@ -283,11 +283,16 @@ sed(char *file) v = strndup(s, e-s); } - if (blaze822_chdr(msg, h)) + if (blaze822_chdr(msg, h)) { + free(h); + free(v); break; + } printhdr(h, 0); printf(": %s\n", v); + free(h); + free(v); break; -- cgit 1.4.1