Bug 74648 - Huge memory leak in ypserv
Summary: Huge memory leak in ypserv
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ypserv
Version: 7.3
Hardware: All
OS: Linux
high
medium
Target Milestone: ---
Assignee: Alexander Larsson
QA Contact: Jay Turner
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-09-29 03:51 UTC by hjl
Modified: 2015-01-08 00:00 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-10-02 16:32:02 UTC
Embargoed:


Attachments (Terms of Use)
A patch to fix one memory leak (1.57 KB, patch)
2002-09-29 03:52 UTC, hjl
no flags Details | Diff

Description hjl 2002-09-29 03:51:30 UTC
I finally tracked down how query for a non-existent map brought down
my NIS server. ypserv never frees the memory allocated for non-existent
maps. Here is a patch which seems to help a lot. I don't know if there
are any other memory leaks in ypserv.

Comment 1 hjl 2002-09-29 03:52:41 UTC
Created attachment 77606 [details]
A patch to fix one memory leak

Comment 2 Alexander Larsson 2002-10-02 07:35:56 UTC
I don't think this patch is needed for ypserv-2.5 (which is in 8.0 final).
It verifies that the _db_open call didn't fail before strdup:ing domain and map.

Can you verify if it works for you?


Comment 3 hjl 2002-10-02 16:31:55 UTC
It seems ok. It will be nice to have an update for 7.x.

Comment 4 Mark J. Cox 2002-12-03 12:34:28 UTC
Please see
http://rhn.redhat.com/errata/RHSA-2002-223.html



Note You need to log in before you can comment on or make changes to this bug.