[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] memory leak
From: |
David Lawrence Ramsey |
Subject: |
Re: [Nano-devel] memory leak |
Date: |
Sun, 7 Sep 2003 17:31:04 -0700 (PDT) |
Brand Huntsman:
<snip>
>I've run nano through valgrind and found that regcomp() allocates over
>a meg, for my nanorc file, and regexec() allocates more memory each
>time the file is scrolled/modified. I can't figure out why regexec()
>would not be freeing memory it allocates since it doesn't return any,
>could be a bug in glibc.
>
>Do you know how the highlighting is handled? Does it calculate colors
>for the entire file at once? I'm guessing it doesn't save the
>information because it calls regexec() each time the file is scrolled.
>Does it call regcomp() for every color command in nanorc or just for
>those in the current syntax?
I'll check.
<snip>
>I've attached syntax files for nasm, gas, c, php, html, bash and my
>nanorc. The nanorc syntax file has comments and a new regexp for the
>file extension "(\.|/|)nanorc$".
I've tried the new nanorc syntax file out. It works well afaict and it
isn't that different from the old version, so it's in. I'll look at the
others soon. Thanks.
_____________________________________________________________
Sluggy.Net: The Sluggy Freelance Community!