apps/top.c
/**
 * @brief Free resources used by a process entry.
 *
 * Frees any strings allocated for the process, as well
 * as the process struct itself.
 */
@brief Free resources used by a process entry.
Frees any strings allocated for the process, as well
as the process struct itself.
@brief Free resources used by a process entry . Frees any strings allocated for the process as well as the process struct itself .
void free_entry(struct process * out) {
	if (out->command_line) free(out->command_line);
	if (out->process) free(out->process);
	if (out->user) free(out->user);
	free(out);
}
void free_entry ( struct process * out ) { if ( out -> command_line ) free ( out -> command_line ) ; if ( out -> process ) free ( out -> process ) ; if ( out -> user ) free ( out -> user ) ; free ( out ) ; }
@brief Free resources used by a process entry.
@brief Free resources used by a process entry .