Project

General

Profile

Actions

Bug #4802

open

Possible memory leaks in _clnt_tli_create_timed()/clnt_tp_create_timed()

Added by Marcel Telka over 8 years ago. Updated over 8 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2014-04-24
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

In a case a strdup() will fail in _clnt_tli_create_timed() we will leak cl.

Actions #1

Updated by Marcel Telka over 8 years ago

  • Status changed from New to In Progress
  • Assignee set to Marcel Telka
Actions #2

Updated by Marcel Telka over 8 years ago

In addition to cl, we might also leak nc in _clnt_tli_create_timed().

Similar cl leak after the strdup() failure is in clnt_tp_create_timed() too.

Together with this fix I'll also change the madefd initialization in _clnt_tli_create_timed() to make sure the madefd is always set before use (this was not always the case, for example when t_sync() call failed).

Actions #3

Updated by Marcel Telka over 8 years ago

  • Subject changed from Possible memory leak in _clnt_tli_create_timed() to Possible memory leaks in _clnt_tli_create_timed()/clnt_tp_create_timed()
Actions

Also available in: Atom PDF