From 5b688b33c4541d5b0487ed8bfe4224137b629b0e Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Tue, 13 May 2003 12:49:08 +0000 Subject: - use lu_start to build the opaque admin object --- USER/USER.xs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'USER') diff --git a/USER/USER.xs b/USER/USER.xs index 6f45ecc..c294d06 100644 --- a/USER/USER.xs +++ b/USER/USER.xs @@ -71,7 +71,7 @@ USER::ADMIN * Admin_new(CLASS) char *CLASS CODE: - USER_ERR *error = NULL; + USER__ERR *error = NULL; RETVAL = (USER__ADMIN *)lu_start(NULL, 0, NULL, NULL, lu_prompt_console_quiet, NULL, &error); if( RETVAL == NULL ){ warn("unable to malloc USER__ADMIN"); @@ -87,9 +87,7 @@ Admin_DESTROY(self) printf("freeing ADMIN"); if (self) { lu_end(self); - self = NULL; }; - lu_ctx_free(self); void Admin_lookup_user_name(self, name) -- cgit v1.2.1