Memory leak while import

I have Mikrotik RB2011iL-RM. While operation it shows me about 32 Mb of free memory.
I have downloaded script https://www.squidblacklist.org/downloads/drop.malicious.rsc ,
then imported it with sheduled script :

:log warning “Disabling system Logging”;
import drop.malicious.rsc
/system logging enable 0

After running of this script for the first time, the list was imported, but amount of free memory decreased to 10 Mb, and within a day routerboard worked with this amount of free memory/
After running for the second time, routerboard at first the amount of free memory decreased to 3 Mb, and then routerboard was rebooted by netwatch because of timeout.
After reboot I see 32 Mb of free memory again.
What can be a reason of this behavior?
RouterOs version 6.42.5

An RB2011iL is not powerful enough for a list that long! Far too little memory and a poor CPU.
Those lists are intended for larger routers e.g. RB1100, RB3011, CCR. Even a RB750Gr3 would be better.
There are about 26250 entries in that list and each entry takes up space, also matching takes up CPU.

Yes, there are about 26K items in lists, but after reboot RB2011 works well with this lists, cpu load about 15%, free memory 32 Mb (from 64 at all).
Why it works well only after reboot?

Are all items imported? If you create an export of the running config, are both files of the same size (approximately)?

When memory is allocated and freed there can be fragmentation which makes the remainder of the memory not as usable as before.
This effect is seen less when there is an abundance of memory.
RB2011iL is about the smallest device available from MikroTik and it really isn’t suited for tasks like this.
(not even discussing the usefullness of maintaining such long and arbitrary blocklists)

Only one address was not imported, from 26651

Why are you saying, that RB2011iL is about the smallest device available from MikroTik?
64 Mb RAM, 600 MHz CPU, 128 Mb disk

There are a lot of Mikrotik devices, which have less configuration, e.g. RB 751, RB 951, etc.

Most devices have 128 or 256 MB RAM which is critically important when you want to use several MB for some purpose.
64MB is really low-end within the MikroTik product gamma.
But anyway, simply don’t waste your time on things like this, it doesn’t work anyway and you can cause collateral damage.
Allow incoming established/related traffic and explicitly opened ports and there is no need to look for explicit addresses.