From 8ab3c27e0c7c05afb098ae01496ee50555d85a8b Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Wed, 11 Mar 2020 22:53:51 +0100 Subject: [PATCH] Plug a memory leak. --- mlb-rsx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mlb-rsx.c b/mlb-rsx.c index 339b3f7..66ad28b 100644 --- a/mlb-rsx.c +++ b/mlb-rsx.c @@ -231,6 +231,7 @@ MLB *mlb_rsx_open( } else if (WORD(buff) != 01001) { /* Is this really a macro library? */ /* fprintf(stderr, "error: first word not correct value\n"); */ mlb_rsx_close(mlb); /* Nope. */ + free(buff); return NULL; }