X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2Freference.rst;h=6968c81b283c1b0c8a67751e14e32fa4d9cb4dd7;hb=6f0dfe1b3fd52c2d141fff412b70b64ebcaf5ad8;hp=be6567eebc17941c20ae5c04066a5d7e7ee42104;hpb=65e7760c9c16f7451974ebc7275c4eb572ccf04c;p=apps%2Fagl-service-can-low-level.git diff --git a/docs/reference.rst b/docs/reference.rst index be6567ee..6968c81b 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -630,10 +630,10 @@ pb_release ---------- Releases any dynamically allocated fields. - void pb_release(const pb_field_t fields[], void *dest_struct); + void pb_release(const pb_field_t fields[], void \*dest_struct); :fields: A field description array. Usually autogenerated. -:dest_struct: Pointer to structure where data will be stored. +:dest_struct: Pointer to structure where data is stored. If NULL, function does nothing. This function is only available if *PB_ENABLE_MALLOC* is defined. It will release any pointer type fields in the structure and set the pointers to NULL.