diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2023-04-22 10:20:28 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2023-04-22 10:20:28 +0200 |
commit | 80fe3d1a53093880b8912160e440f1a0e0fb7955 (patch) | |
tree | e16aea43d70cedd8c710d57ffae685795b9594c0 /examples/files.c | |
parent | 3f99abf7b39c17cfb16d685de54ccb4861131f2f (diff) | |
download | libmtp-80fe3d1a53093880b8912160e440f1a0e0fb7955.tar.gz |
convert examples to use LIBMTP_FreeMemory
Diffstat (limited to 'examples/files.c')
-rw-r--r-- | examples/files.c | 4 |
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); |