diff options
Diffstat (limited to 'src/polyp/xmalloc.c')
-rw-r--r-- | src/polyp/xmalloc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/polyp/xmalloc.c b/src/polyp/xmalloc.c index 4c8689a6..1deeebd8 100644 --- a/src/polyp/xmalloc.c +++ b/src/polyp/xmalloc.c @@ -121,3 +121,9 @@ char *pa_xstrndup(const char *s, size_t l) { } } +void pa_xfree(void *p) { + if (!p) + return; + + free(p); +} |