summaryrefslogtreecommitdiff
path: root/examples/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/files.c')
-rw-r--r--examples/files.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/files.c b/examples/files.c
index d7d46fe..bc26af9 100644
--- a/examples/files.c
+++ b/examples/files.c
@@ -135,7 +135,7 @@ int main(int argc, char **argv)
} else {
printf("Listing File Information on Device with name: %s [SN:%s]\n",
friendlyname, serialnr);
- free(friendlyname);
+ LIBMTP_FreeMemory(friendlyname);
}
LIBMTP_Dump_Errorstack(device);
@@ -148,7 +148,7 @@ int main(int argc, char **argv)
LIBMTP_Release_Device(device);
}
- free(rawdevices);
+ LIBMTP_FreeMemory(rawdevices);
printf("OK.\n");
exit (0);