From cc473821cc968f254aa21d46d1d244a028e1bc1a Mon Sep 17 00:00:00 2001 From: Elena Reshetova Date: Thu, 17 Jan 2013 16:20:02 +0200 Subject: [PATCH] fixing error in cleanup if magic db can't be loaded --- plugins/msm-plugin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/msm-plugin.c b/plugins/msm-plugin.c index b62ab8a..4556102 100644 --- a/plugins/msm-plugin.c +++ b/plugins/msm-plugin.c @@ -152,6 +152,7 @@ rpmRC PLUGINHOOK_INIT_FUNC(rpmts _ts, const char *name, const char *opts) if (magic_load(cookie, NULL) != 0) { rpmlog(RPMLOG_ERR, "cannot load magic database - %s\n", magic_error(cookie)); magic_close(cookie); + cookie = NULL; return RPMRC_FAIL; } -- 2.7.4