shithub: choc

Download patch

ref: a0d84d648f139c2937cc49808f8cca8337315086
parent: ed17e7924a34e5a5105e16b2608d4b145e75f6b0
author: Turo Lamminen <turol@iki.fi>
date: Mon Feb 1 10:30:54 EST 2021

Free old myargv before replacing it with newargv

--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -210,6 +210,7 @@
         ++newargc;
     }
 
+    free(myargv);
     myargv = newargv;
     myargc = newargc;