Re: Issue in man page regex.3

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

 



Hi Helge,

On 1/22/23 20:31, Helge Kreutzmann wrote:
Without further ado, the following was found:

Issue:    How can a variable (I<preg>) free memory? Isn't it B<regfree>() which frees the memory?

How about the patch below?

Cheers,

Alex


"Supplying B<regfree>()  with a precompiled pattern buffer, I<preg> will free"
"the memory allocated to the pattern buffer by the compiling process,"
"B<regcomp>()."


diff --git a/man3/regex.3 b/man3/regex.3
index 6f5831f24..f6faf6240 100644
--- a/man3/regex.3
+++ b/man3/regex.3
@@ -240,7 +240,7 @@ .SS POSIX pattern buffer freeing
 Supplying
 .BR regfree ()
 with a precompiled pattern buffer,
-.I preg
+.IR preg ,
 will free the memory allocated to the pattern buffer by the compiling
 process,
 .BR regcomp ().


--
<http://www.alejandro-colomar.es/>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux