From 6fac5a3e65217f1686927ecc8eda567888b29d4f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 9 Aug 2018 16:37:39 +0200 Subject: docs: mention NULL is fine input to several functions Fixes #2837 Closes #2858 Reported-by: Markus Elfring --- docs/libcurl/curl_free.3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/libcurl/curl_free.3') diff --git a/docs/libcurl/curl_free.3 b/docs/libcurl/curl_free.3 index 5bbf74535..e2cf890f0 100644 --- a/docs/libcurl/curl_free.3 +++ b/docs/libcurl/curl_free.3 @@ -5,7 +5,7 @@ .\" * | (__| |_| | _ <| |___ .\" * \___|\___/|_| \_\_____| .\" * -.\" * Copyright (C) 1998 - 2014, Daniel Stenberg, , et al. +.\" * Copyright (C) 1998 - 2018, Daniel Stenberg, , et al. .\" * .\" * This software is licensed as described in the file COPYING, which .\" * you should have received as part of this distribution. The terms @@ -31,5 +31,8 @@ curl_free - reclaim memory that has been obtained through a libcurl call curl_free reclaims memory that has been obtained through a libcurl call. Use \fIcurl_free(3)\fP instead of free() to avoid anomalies that can result from differences in memory management between your application and libcurl. + +Passing in a NULL pointer in \fIptr\fP will make this function return +immediately with no action. .SH "SEE ALSO" .BR curl_easy_unescape "(3), " curl_easy_escape "(3) " -- cgit v1.2.3