Skip to content

Commit

Permalink
Resolve #11: Added warning about memory leak if a configuration funct…
Browse files Browse the repository at this point in the history
…ion aborts due to a malloc failure (#24)
  • Loading branch information
pasetti authored Nov 25, 2016
1 parent 4891714 commit b4d8ff4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/FwPrDCreate.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
*
* The creation and the extension functions in this header file always check the
* success of calls to <code>malloc</code>.
* In case of failure, the caller aborts and returns a NULL pointer.
* In case of failure, the function aborts and returns a NULL pointer.
* Memory which had already been allocated at the time the function aborts,
* is not released.
*
* Applications which do not wish to use dynamic memory allocation can
* create a procedure descriptor statically using the services offered
Expand Down
4 changes: 3 additions & 1 deletion src/FwSmDCreate.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
*
* The creation and the extension functions in this header file always check the
* success of calls to <code>malloc</code>.
* In case of failure, the caller aborts and returns a NULL pointer.
* In case of failure, the function aborts and returns a NULL pointer.
* Memory which had already been allocated at the time the function aborts,
* is not released.
*
* Applications which do not wish to use dynamic memory allocation can
* create a state machine descriptor statically using the services offered
Expand Down

0 comments on commit b4d8ff4

Please sign in to comment.