- CID 169545
- CID 169546
- CID 171381
- CID 171382
if ((ifp = fopen(body, "r")) == NULL)
{
mutt_perror(body);
+ safe_fclose(&ofp);
return;
}
return &MuttVars[idx];
else if (mutt_strncmp("my_", s, 3) == 0)
{
- struct Option *opt = safe_malloc(sizeof(struct Option));
if (!myvar_get(s))
return NULL;
+ struct Option *opt = safe_malloc(sizeof(struct Option));
opt->data = (unsigned long) safe_strdup(myvar_get(s));
if (*((char **) opt->data))
{
struct Buffer err;
const char *param = lua_tostring(l, -2);
mutt_debug(2, " * _lua_mutt_set(%s)\n", param);
- struct Option *value = safe_malloc(sizeof(struct Option));
const struct Option *tmp = mutt_option_get(param);
if (!tmp)
{
return -1;
}
+ struct Option *value = safe_malloc(sizeof(struct Option));
memcpy(value, tmp, sizeof(struct Option));
if (value)
{
{
mutt_error(_("Decryption failed"));
pgp_void_passphrase();
+ safe_fclose(&pgperr);
return NULL;
}