By default, when you clone a listing that has images (logo, cover, gallery, etc.), those images will be duplicated, filling up your WordPress Media Library.
The code snippet below reuses the same files when cloning a listing instead of re-uploading and duplicating them.
PHP
add_filter( 'mylisting/duplicate-listing/reuse-file-uploads', function( $reuse, $original_listing, $duplicate ) {
return true;
}, 10, 3 );