From: Zhanhao (Jasper) Liu Date: Thu, 7 Jun 2018 07:56:09 +0000 (+0800) Subject: doc: Update cpp.rst to fix bug in demo code X-Git-Tag: v14.1.0~1163^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea100828d5879e485e910bb16cb18332dcf6f64d;p=ceph.git doc: Update cpp.rst to fix bug in demo code Update cpp.rst to fix the possible problems brought by not closing the FILE pointer properly in the demo code. Signed-off-by: Zhanhao Liu --- diff --git a/doc/radosgw/s3/cpp.rst b/doc/radosgw/s3/cpp.rst index a96fc7549e77..089c9c53a304 100644 --- a/doc/radosgw/s3/cpp.rst +++ b/doc/radosgw/s3/cpp.rst @@ -240,6 +240,7 @@ This creates a file ``hello.txt``. }; S3_put_object(&bucketContext, sample_key, contentLength, NULL, NULL, 0, &putObjectHandler, &data); + fclose(data.infile); Download an Object (to a file)