Similar to gs_free to cleanup pointers with free(). Note that g_free() and free() cannot be used interchangably.