Opened 17 years ago

Last modified 17 years ago

#34 closed task

Make sure that the constructors in SVN class makes a proper cleanup in cases of abort. — at Version 2

Reported by: Jari Häkkinen Owned by: Jari Häkkinen
Priority: major Milestone: 0.3
Component: core Version: trunk
Keywords: Cc:

Description (last modified by Jari Häkkinen)

error stuff must be clean up manually, from svn API docs:

Change History (2)

comment:1 Changed 17 years ago by Jari Häkkinen

Status: newassigned

comment:2 Changed 17 years ago by Jari Häkkinen

Description: modified (diff)

error stuff must be clean up manually, from svn API docs:

void svn_error_clear(svn_error_t *error)

Free the memory used by error, as well as all ancestors and descendants of error.

Unlike other Subversion objects, errors are managed explicitly; you MUST clear an error if you are ignoring it, or you are leaking memory. For convenience, error may be NULL, in which case this function does nothing; thus, svn_error_clear(svn_foo(...)) works as an idiom to ignore errors.

Note: See TracTickets for help on using tickets.