Changeset 2487

Show
Ignore:
Timestamp:
08/24/07 17:14:03 (1 year ago)
Author:
dgollub
Message:

Fixed memory leak on an error condition.
If the objformat was not found (format plugin not installed) the sink
object didn't got unrefed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/file-sync/src/file_sync.c

    r2486 r2487  
    706706                        osync_error_set(error, OSYNC_ERROR_GENERIC, "Configured storage format \"%s\" for object type \"%s\" is unknown. Is the format plugin missing?", 
    707707                                        dir->objformat, dir->objtype); 
     708                        osync_objtype_sink_unref(sink); 
    708709                        goto error_free_env; 
    709710                }