forked from sigrokproject/libsigrok
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scpi: document callers' responsibility to free getters' allocated memory
Some of the SCPI getter routines allocate memory for response data which callers need to free after use. Document this responsibility in more places, and rephrase existing locations for consistency. See a word-diff for the essence of the commit. It's assumed that the separate paragraph in the function description is better perceived than something that's hidden in the parameter or return value discussion. Also reference the corresponding free routine by name for callers' convenience (data types will differ among routines). Some free routines can be called unconditionally, others require NULL checks at the caller's. Reported-By: Ralf <jr-oss@gmx.net>
- Loading branch information
Showing
1 changed file
with
36 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters