From d25630601b80d39976c70646450e1b26070d5765 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 26 Mar 1997 23:09:57 +0000 Subject: [PATCH] removed bad free of global data git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1499 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/otp/otp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/appl/otp/otp.c b/appl/otp/otp.c index 1038c6b76..e96d8a1c2 100644 --- a/appl/otp/otp.c +++ b/appl/otp/otp.c @@ -232,7 +232,6 @@ has_an_otp(char *user) ctx.user = user; ret = otp_simple_get(db, &ctx); - if (!ret) free(ctx.alg); otp_db_close (db); return !ret; @@ -251,7 +250,6 @@ print_otp_entry_for_name (void *db, char *user) if (!otp_simple_get(db, &ctx)) { fprintf(stdout, "%s\totp-%s %d %s\n", ctx.user, ctx.alg->name, ctx.n, ctx.seed); - free(ctx.alg); } }