fix: index buffer in string replace was not freed

Sun, 29 Dec 2019 11:30:39 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 29 Dec 2019 11:30:39 +0100
changeset 379
477404eb380e
parent 378
952c2df7e7ac
child 380
2c9a5aebaee1

fix: index buffer in string replace was not freed

src/string.c file | annotate | diff | comparison | revisions
--- a/src/string.c	Sun Dec 29 11:29:17 2019 +0100
+++ b/src/string.c	Sun Dec 29 11:30:39 2019 +0100
@@ -776,6 +776,9 @@
     } while (curbuf);
     memcpy(destptr, str.ptr+srcidx, str.length-srcidx);
 
+    /* Free index buffer */
+    scstrrepl_free_ibuf(firstbuf);
+
     return result;
 }
 

mercurial