sed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCHES] enhancements of sed error messages, using sed on Windows


From: Assaf Gordon
Subject: Re: [PATCHES] enhancements of sed error messages, using sed on Windows
Date: Thu, 22 Nov 2018 13:33:00 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0

Hello Jannick,

On 2018-11-01 2:16 p.m., Jannick wrote:

#3 is a minor patch on memory leakage.


If any questions, please let me know. Please feel free to edit anything as
you might think it is best for sed.


Attached is a slightly modified version of patch #3.
Typically there's no need to free a one-time allocated
memory, as it will be automatically reclaimed when the program terminals.

But it does help to free it when running under 'lint'
to avoid false-positive memory issues.

I've added IF_LINT() around the free() calls.

I'll push soon if there are no comments.

Will follow up with your other patches.

regards,
  -assaf

Attachment: 0001-sed-fix-memory-leakage-under-lint.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]