NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
List Data Free API

Prototype for a function to free List data. More...

Functions

static void attachmatch_free (struct AttachMatch **ptr)
 Free an AttachMatch - Implements list_free_t -.
 

Detailed Description

Prototype for a function to free List data.

Parameters
[out]ptrData to free

Function Documentation

◆ attachmatch_free()

static void attachmatch_free ( struct AttachMatch **  ptr)
static

Free an AttachMatch - Implements list_free_t -.

Parameters
ptrAttachMatch to free
Note
We don't free minor because it is either a pointer into major, or a static string.

Definition at line 69 of file attachments.c.

70{
71 if (!ptr || !*ptr)
72 return;
73
74 struct AttachMatch *am = *ptr;
75 regfree(&am->minor_regex);
76 FREE(&am->major);
77 FREE(ptr);
78}
#define FREE(x)
Definition: memory.h:55
An attachment matching a regex for attachment counter.
Definition: attachments.c:49
regex_t minor_regex
Minor mime type regex.
Definition: attachments.c:53
const char * major
Major mime type, e.g. "text".
Definition: attachments.c:50
+ Here is the caller graph for this function: