fxlink: don't free glib pointer apparently not malloc'ed

This commit is contained in:
Lephenixnoir 2023-12-03 16:08:58 +01:00
parent 8f50f7694a
commit 9f4d17ca4f
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -53,7 +53,7 @@ int main_send(struct fxlink_filter *filter, delay_t *delay, char **files)
printf("Mounted %s to %s.\n", dev, folder);
}
else {
folder = strdup(mount_points[0]);
folder = mount_points[0];
printf("Already mounted at %s.\n", folder);
}
@ -113,7 +113,6 @@ int main_send(struct fxlink_filter *filter, delay_t *delay, char **files)
printf("Ejected %s.\n", dev);
end:
free(folder);
if(argv) free(argv);
if(fs) g_object_unref(fs);
if(drive) g_object_unref(drive);