Project

General

Profile

Bug #4802

Possible memory leaks in _clnt_tli_create_timed()/clnt_tp_create_timed()

Added by Marcel Telka about 6 years ago. Updated about 6 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.

History

#1

Updated by Marcel Telka about 6 years ago

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

Updated by Marcel Telka about 6 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).

#3

Updated by Marcel Telka about 6 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()

Also available in: Atom PDF