aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/reader.c2
-rw-r--r--src/string.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index c9b00f66..f37eac14 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -264,7 +264,7 @@ serd_reader_read_file(SerdReader* reader,
FILE* fd = serd_fopen((const char*)path, "rb");
if (!fd) {
- free(path);
+ serd_free(path);
return SERD_ERR_UNKNOWN;
}
diff --git a/src/string.c b/src/string.c
index d49e1e68..2f79f496 100644
--- a/src/string.c
+++ b/src/string.c
@@ -18,6 +18,12 @@
#include <math.h>
+void
+serd_free(void* ptr)
+{
+ free(ptr);
+}
+
const uint8_t*
serd_strerror(SerdStatus status)
{