Skip to content

Commit

Permalink
(shell_free_archive): fix Glib g_string_free assertion.
Browse files Browse the repository at this point in the history
Fix confusing extra output like ticket #4611
(mc:72268): GLib-CRITICAL : ... g_string_free: assertion 'string != NULL' failed.

Signed-off-by: Andreas Mohr <[email protected]>
Signed-off-by: Andrew Borodin <[email protected]>
  • Loading branch information
Andreas Mohr authored and aborodin committed Dec 17, 2024
1 parent 9ef2cb4 commit e439bd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vfs/shell/shell.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ shell_free_archive (struct vfs_class *me, struct vfs_s_super *super)
g_free (shell_super->scr_send);
g_free (shell_super->scr_append);
g_free (shell_super->scr_info);
g_string_free (shell_super->scr_env, TRUE);
if (shell_super->scr_env != NULL)
g_string_free (shell_super->scr_env, TRUE);
}

/* --------------------------------------------------------------------------------------------- */
Expand Down

0 comments on commit e439bd5

Please sign in to comment.