Frees memory previously allocated for a diag_get_list subroutine.
#include <diag/diagodm.h> #include <sys/cfgodm.h> #include <diag/DiagODM.h> int diag_free_list ( void *p_obj, struct listinfo *info)
The diag_free_list subroutine recursively frees up a tree of memory object lists that were allocated for a diag_get_list subroutine.
p_obj | Points to the array of structures returned from the diag_get_list subroutine. |
info | Points to the listinfo structure returned from the diag_get_list subroutine. |
Upon successful completion, a value of 0 is returned. If the subroutine fails, a -1 is returned.