summaryrefslogtreecommitdiff
path: root/src/libmtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmtp.c')
-rw-r--r--src/libmtp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libmtp.c b/src/libmtp.c
index 2e72dd6..e17036e 100644
--- a/src/libmtp.c
+++ b/src/libmtp.c
@@ -9463,3 +9463,12 @@ int LIBMTP_Custom_Operation(LIBMTP_mtpdevice_t *device, uint16_t code, int n_par
return 0;
}
+
+/**
+ * Free memory allocated by libmtp. Is doing the same as libc free(mem) in most cases.
+ * @mem pointer to allocated memory.
+ */
+void LIBMTP_FreeMemory(void *mem)
+{
+ free (mem);
+}