Univention Bugzilla – Full Text Bug Listing |
Summary: | Memory leaks, memory corruption, performance problems | ||
---|---|---|---|
Product: | UCS | Reporter: | Philipp Hahn <hahn> |
Component: | Listener (univention-directory-listener) | Assignee: | UCS maintainers <ucs-maintainers> |
Status: | REOPENED --- | QA Contact: | |
Severity: | normal | ||
Priority: | P5 | CC: | best |
Version: | UCS 4.4 | Flags: | hahn:
Patch_Available+
|
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=34747 | ||
What kind of report is it?: | Development Internal | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | Cleanup | |
Max CVSS v3 score: | |||
Attachments: | Concatenated patch series |
Description
Philipp Hahn
2013-02-04 11:04:28 CET
Created attachment 5044 [details]
Concatenated patch series
diff --git a/branches/ucs-3.2/ucs-3.2-1/management/univention-directory-listener/src/cache.c b/branches/ucs-3.2/ucs-3.2-1/management/univention-directory-listener/src/cache.c index a07bc54..cd70838 100644 --- a/branches/ucs-3.2/ucs-3.2-1/management/univention-directory-listener/src/cache.c +++ b/branches/ucs-3.2/ucs-3.2-1/management/univention-directory-listener/src/cache.c @@ -631,7 +631,7 @@ int cache_next_entry(DBC **cur, char **dn, CacheEntry *entry) return cache_next_entry(cur, dn, entry); } - if (!*dn) + if (*dn) free(*dn); *dn = strdup(key.data); diff --git a/branches/ucs-3.2/ucs-3.2-1/management/univention-directory-listener/src/change.c b/branches/ucs-3.2/ucs-3.2-1/management/univention-directory-listener/src/change.c index 3666f8a..6dfc32a 100644 --- a/branches/ucs-3.2/ucs-3.2-1/management/univention-directory-listener/src/change.c +++ b/branches/ucs-3.2/ucs-3.2-1/management/univention-directory-listener/src/change.c @@ -99,7 +99,7 @@ int change_init_module(univention_ldap_parameters_t *lp, Handler *handler) cache_update_or_deleteifunused_entry(0, dn, &cache_entry); cache_free_entry(&dn, &cache_entry); } - if(!dn) + if(dn) free(dn); univention_debug(UV_DEBUG_LISTENER, UV_DEBUG_INFO, r69906 | Bug #41261 UDL: Fix free(NULL) r69899 | Bug #30263 UDL: Allocate filenames on stack Package: univention-directory-listener Version: 10.0.0-11.315.201606071717 Branch: ucs_4.1-0 Scope: errata4.1-2 r69910 | Bug #22383,Bug #30227,Bug #30263,Bug #34324,Bug #34507,Bug #34738,Bug #3490,Bug #38696,Bug #39509,Bug #40600,Bug #41261: UDL YAML univention-directory-listener.yaml This issue has been filled against UCS 4.1. The maintenance with bug and security fixes for UCS 4.1 has ended on 5st of April 2018. Customers still on UCS 4.1 are encouraged to update to UCS 4.3. Please contact your partner or Univention for any questions. If this issue still occurs in newer UCS versions, please use "Clone this bug" or simply reopen the issue. In this case please provide detailed information on how this issue is affecting you. |