Bug 511863 - DOC: caller of slapi_pblock_get(pb, SLAPI_CONN_DN, &dn) needs to free dn
Summary: DOC: caller of slapi_pblock_get(pb, SLAPI_CONN_DN, &dn) needs to free dn
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Directory Server
Classification: Red Hat
Component: Doc-plugin-programming-guide
Version: 8.1
Hardware: All
OS: Linux
high
medium
Target Milestone: DS8.1
: ---
Assignee: Deon Ballard
QA Contact: ecs-bugs
URL:
Whiteboard:
Depends On:
Blocks: 434915
TreeView+ depends on / blocked
 
Reported: 2009-07-15 13:12 UTC by Rob Crittenden
Modified: 2012-06-21 23:18 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-21 23:18:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rob Crittenden 2009-07-15 13:12:11 UTC
Description of problem:

The documentation on slapi_pblock_get() states that in most cases the caller doesn't need to free the value returned:

http://www.redhat.com/docs/manuals/dir-server/plugin/function.htm#35042

One case where the caller need to do a free is in SLAPI_CONN_DN. The value should be freed with slapi_ch_free_string()

This is also mentioned in bug https://bugzilla.redhat.com/show_bug.cgi?id=458510

Version-Release number of selected component (if applicable):

fedora-ds-base-1.2.0-4.fc9.i386

Comment 1 Deon Ballard 2009-09-02 14:22:47 UTC
Changing the status from "new" to "assigned."

Comment 3 Deon Ballard 2009-09-22 17:36:46 UTC
Setting to block the DS9 docs tracking bug.

Comment 8 Deon Ballard 2011-05-19 18:05:34 UTC
Setting MODIFIED bugs to ON_QA.

Comment 10 Deon Ballard 2012-06-21 23:18:37 UTC
Closing.

Comment 11 Deon Ballard 2012-06-21 23:18:55 UTC
Closing.


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