Re: copy-file: Add missing free

2015-10-15 Thread Pádraig Brady
On 15/10/15 16:16, Simon Reinhardt wrote: > Dear list, > > q?copy_file_preserving is leaking a block, each time it is called with a > bogus filename: > > #include > #include > > int > main (void) > { > qcopy_file_preserving ("/tmp/some_non_existent_file", "/tmp/vlevle"); > } > > will produc

copy-file: Add missing free

2015-10-15 Thread Simon Reinhardt
Dear list, q?copy_file_preserving is leaking a block, each time it is called with a bogus filename: #include #include int main (void) { qcopy_file_preserving ("/tmp/some_non_existent_file", "/tmp/vlevle"); } will produce in valgrind: ==5703== 32,768 bytes in 1 blocks are definitely lost in