We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arc_free()
free()
1 parent 1c0bba5 commit 2181e8aCopy full SHA for 2181e8a
CHANGELOG.md
@@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file.
11
### Removed
12
13
### Fixed
14
+- libopenarc - `arc_free()` accepts NULL.
15
16
## [1.1.0](https://github.com/flowerysong/OpenARC/releases/tag/v1.1.0) - 2024-11-05
17
libopenarc/arc.c
@@ -2397,6 +2397,11 @@ arc_free(ARC_MESSAGE *msg)
2397
struct arc_hdrfield *h;
2398
struct arc_hdrfield *tmp;
2399
2400
+ if (msg == NULL)
2401
+ {
2402
+ return;
2403
+ }
2404
+
2405
if (msg->arc_error != NULL)
2406
{
2407
ARC_FREE(msg->arc_error);
0 commit comments