Notice: We have migrated to GitLab launching 2024-05-01 see here:

#2881 assigned defect

src/cpukit/libnetworking/libc/res_mkupdate.c:395]: (error) Memory leak: rrecp

Reported by: David Binderman Owned by: Needs Funding
Priority: lowest Milestone: Indefinite
Component: unspecified Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:


Source code is

ns_updrec *rrecp = (ns_updrec *)calloc(1, sizeof(ns_updrec));

if (!rrecp
!(rrecp->r_dname = strdup(dname)))

return (NULL);

If the calloc succeeds and the strdup fails, then leak.

Change History (1)

comment:1 Changed on 02/15/17 at 14:20:42 by Sebastian Huber

Milestone: 4.12Indefinite
Owner: set to Needs Funding
Status: newassigned
Note: See TracTickets for help on using tickets.