From 9d3ea75f4a60e01eb8d8346a815bacca9b03d783 Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Thu, 19 Jan 2017 11:39:44 +0100
Subject: [PATCH] Missing call to sys_doneloadpreferences in
 sys_loadpreferences (memleak on Linux).

---
 pd/src/s_file.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pd/src/s_file.c b/pd/src/s_file.c
index b7a39c0b8..c7b5f7a95 100644
--- a/pd/src/s_file.c
+++ b/pd/src/s_file.c
@@ -507,6 +507,7 @@ void sys_loadpreferences( void)
         if (strcmp(prefbuf, "."))
             sys_flags = gensym(prefbuf);
     }
+    sys_doneloadpreferences();
     sys_doflags();
 
     if (sys_defeatrt)
-- 
GitLab