Skip to content

[BUG]SegFault in remove(x) DLL #765

@f0lg0

Description

@f0lg0

Description

the remove() function throws a segmentation fault.

Expected Behavior

The function should remove the parsed element.

Actual Behavior

The function fails at "t->prev->next = t->next;" and throws a seg fault

Possible Fix

Still working on it, just wanted to report it... I don't know C++ well.

Steps to Reproduce

  1. insert some values
  2. print if you want
  3. delete something

Context

I was trying to remove a node from the DLL

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions