• Patch: Elm ME+ 2.5 PLalpha48 -> Elm ME+ 2.5 PLalpha49 [3/9] (3/6)

    From Kari Hurtta@21:1/5 to All on Thu Jan 3 16:42:07 2019
    [continued from previous message]

    if (POP_error == folder->p->a.pop_mbx.pop_state) {
    if (folder -> p->a.pop_mbx.C.stream ) {
    DPRINT(Debug,12,(&Debug,
    ! "pop_command_ok: Closing stream\n"));
    !
    ! FreeStreamStack(& (folder -> p->a.pop_mbx.C.stream));
    }
    status = 0;
    goto clean;
    --- 914,928 ----
    if (POP_error == folder->p->a.pop_mbx.pop_state) {
    if (folder -> p->a.pop_mbx.C.stream ) {
    DPRINT(Debug,12,(&Debug,
    ! "pop_command_ok: Closing stream"));
    ! if (folder -> p->a.pop_mbx.seen_badpid) {
    ! DPRINT(Debug,12,(&Debug,", not our stream, owner pid %d",
    ! folder -> p->a.pop_mbx.seen_badpid));
    ! }
    ! DPRINT(Debug,12,(&Debug,"\n"));
    ! FreeStreamStack0(& (folder -> p->a.pop_mbx.C.stream),
    ! folder -> p->a.pop_mbx.seen_badpid,
    ! 1 /* Force clearing of stack even when this is not last reference */);
    }
    status = 0;
    goto clean;
    ***************
    *** 966,972 ****
    DPRINT(Debug,12,(&Debug,
    "mbx_close_pop: Closing stream\n"));

    ! FreeStreamStack( & (folder -> p->a.pop_mbx.C.stream));
    }

    switch (mode) {
    --- 1013,1020 ----
    DPRINT(Debug,12,(&Debug,
    "mbx_close_pop: Closing stream\n"));

    ! FreeStreamStack2(& (folder -> p->a.pop_mbx.C.stream),
    ! 1 /* Forc