[Top][All Lists]

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

Re: regfree

From: Eric Blake
Subject: Re: regfree
Date: Tue, 20 Jul 2010 09:35:34 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5

On 07/20/2010 09:29 AM, Reuben Thomas wrote:
> Not sure who owns GNU regex (it seems to be be deprecated, e.g. no
> documentation in glibc, but maintained), but I thought the folks here
> among the most likely to have a sensible answer to this question:

It is not deprecated; if glibc lacks proper documentation, then report
that as a bug to glibc.

> How should I free the memory allocated by re_compile? regfree seems to
> work fine, but it's odd to use a POSIX compatibility API when I'm
> otherwise using the GNU API

Odd or not, that is the correct usage pattern.  regfree() is the correct
way to release memory allocated by re_compile.

Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

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