850:bbe2925eb590 | 852:83fdf679df99 |
---|---|
335 dav_session_destructor(sn); | 335 dav_session_destructor(sn); |
336 } | 336 } |
337 } | 337 } |
338 | 338 |
339 void dav_session_destructor(DavSession *sn) { | 339 void dav_session_destructor(DavSession *sn) { |
340 cxMempoolDestroy(sn->mp); | 340 cxMempoolFree(sn->mp); |
341 curl_easy_cleanup(sn->handle); | 341 curl_easy_cleanup(sn->handle); |
342 free(sn); | 342 free(sn); |
343 } | 343 } |
344 | 344 |
345 | 345 |
630 DavLockManager *locks = get_lock_manager(sn); | 630 DavLockManager *locks = get_lock_manager(sn); |
631 if(!locks) { | 631 if(!locks) { |
632 return; | 632 return; |
633 } | 633 } |
634 | 634 |
635 if(cxMapRemoveAndGet(locks->resource_locks, cx_hash_key_str(path))) { | 635 if(!cxMapRemove(locks->resource_locks, cx_hash_key_str(path))) { |
636 return; | 636 return; |
637 } | 637 } |
638 | 638 |
639 cxListFindRemove(locks->collection_locks, lock); | 639 cxListFindRemove(locks->collection_locks, lock); |
640 } | 640 } |