Add documentation to substantiate that preprocess() does not leak.
This commit is contained in:
parent
1a4367587f
commit
833182329f
@ -186,6 +186,10 @@ preprocess (const struct grdecl *in, double tol)
|
||||
|
||||
/*
|
||||
* Convert "struct processed_grid" to "struct UnstructuredGrid".
|
||||
*
|
||||
* In particular, convey resource ownership from 'pg' to 'g'.
|
||||
* Consequently, memory resources obtained in process_grdecl()
|
||||
* will be released in free_grid().
|
||||
*/
|
||||
g->dimensions = 3;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user