Commit 1117889f authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Fix memory leak in unittest helper function.

parent 9fbb5a44
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3146,6 +3146,8 @@ smartlist_new_from_text_lines(const char *lines)
  last_line = smartlist_pop_last(sl);
  if (last_line != NULL && *last_line != '\0') {
    smartlist_add(sl, last_line);
  } else {
    tor_free(last_line);
  }

  return sl;