next up previous contents
Next: Problem description Up: Data Management functions Previous: Data Management functions   Contents

Free functions

The amount of data pointed at by value fields should be freed through a DIET API function:

/* Free the amount of data pointed at by the value field of an argument.    */
/* This should be used ONLY for VOLATILE data,                              */
/*    - on the server for IN arguments that will no longer be used          */
/*    - on the client for OUT arguments, after the problem has been solved, */
/*      when they will no longer be used.                                   */
/* NB: for files, this function removes the file and frees the path (since  */
/*     it has been dynamically allocated by DIET in both cases)             */

diet_free_data(diet_arg_t* arg);

The DIET Team - Ven 18 nov 2011 18:13:39 PST