From 5ee700c9b9c61d2d912e9c79cb1f61a18a70b1b6 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Wed, 23 Aug 2017 00:05:50 -0400 Subject: [PATCH] Small fix. --- core/c/mpw-marshall.c | 2 +- platform-independent/cli-c/cli/mpw-cli.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/core/c/mpw-marshall.c b/core/c/mpw-marshall.c index ce3acbdb..bc25afa9 100644 --- a/core/c/mpw-marshall.c +++ b/core/c/mpw-marshall.c @@ -109,7 +109,7 @@ bool mpw_marshal_info_free( bool mpw_marshal_free( MPMarshalledUser **user) { - if (!user) + if (!user || !*user) return true; bool success = true; diff --git a/platform-independent/cli-c/cli/mpw-cli.c b/platform-independent/cli-c/cli/mpw-cli.c index dabfbfc4..eb046d95 100644 --- a/platform-independent/cli-c/cli/mpw-cli.c +++ b/platform-independent/cli-c/cli/mpw-cli.c @@ -544,7 +544,6 @@ int main(int argc, char *const argv[]) { case MPKeyPurposeAuthentication: { mpw_free_string( &site->content ); site->content = strdup( resultState ); - dbg( "site->content: %p", (void *)site->content ); break; } case MPKeyPurposeIdentification: {