Browse Source

free context passed to rline functions in rline_exp

K. Lange 2 years ago
parent
commit
8ac5ee4fb9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      lib/rline_exp.c

+ 2 - 0
lib/rline_exp.c

@@ -1383,6 +1383,8 @@ static void call_rline_func(rline_callback_t func, rline_context_t * context) {
 		}
 	}
 
+	free(context->buffer);
+
 	/* Position cursor */
 	if (context->offset == context->collected) {
 		column = the_line->actual;