Mercurial > audlegacy-plugins
comparison src/curl/curl.c @ 1228:01efa0e5b554
file->handle should be cleared on close, otherwise it can lead to double free.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Tue, 10 Jul 2007 14:21:15 +0900 |
parents | f15ae221c54c |
children | 761e17b23e0c |
comparison
equal
deleted
inserted
replaced
1227:7a081f2998d0 | 1228:01efa0e5b554 |
---|---|
720 | 720 |
721 if (handle->url != NULL) | 721 if (handle->url != NULL) |
722 g_free(handle->url); | 722 g_free(handle->url); |
723 | 723 |
724 g_free(handle); | 724 g_free(handle); |
725 file->handle = NULL; | |
725 } | 726 } |
726 return ret; | 727 return ret; |
727 } | 728 } |
728 | 729 |
729 size_t | 730 size_t |