Add documentation to substantiate that preprocess() does not leak.

This commit is contained in:
Bård Skaflestad 2012-03-02 15:07:55 +01:00
parent 1a4367587f
commit 833182329f

View File

@ -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;