summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2023-04-21 03:24:20 +0200
committerAlejandro Colomar <alx@kernel.org>2023-04-21 03:54:55 +0200
commit8af0181362a655ff23eef82558d5c5be63b1d793 (patch)
tree8c4ab744fe78aab49f90ef6c42af62f17193db5c
parent164297a322b5dee6addff9ad4acb224302ab6e7d (diff)
regex.3: Desoupify regfree() description
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/regex.310
1 files changed, 5 insertions, 5 deletions
diff --git a/man3/regex.3 b/man3/regex.3
index e91504986..d91acc19d 100644
--- a/man3/regex.3
+++ b/man3/regex.3
@@ -232,12 +232,12 @@ is filled in with the first
.I "errbuf_size \- 1"
characters of the error message and a terminating null byte (\[aq]\e0\[aq]).
.SS Freeing
-Supplying
.BR regfree ()
-with a precompiled pattern buffer,
-.IR preg ,
-will free the memory allocated to the pattern buffer by the compiling
-process,
+deinitializes the pattern buffer at
+.IR *preg ,
+freeing any associated memory;
+.I *preg
+must have been initialized via
.BR regcomp ().
.SH RETURN VALUE
.BR regcomp ()