[Freeswitch-svn] [commit] r5462 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Sun Jun 24 20:27:16 EDT 2007
Author: mikej
Date: Sun Jun 24 20:27:15 2007
New Revision: 5462
Modified:
freeswitch/trunk/src/switch_apr.c
Log:
unreachable code causes leak.
Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c (original)
+++ freeswitch/trunk/src/switch_apr.c Sun Jun 24 20:27:15 2007
@@ -406,9 +406,10 @@
SWITCH_DECLARE(switch_status_t) switch_dir_close(switch_dir_t *thedir)
{
- return apr_dir_close(thedir->dir_handle);
+ switch_status_t status = apr_dir_close(thedir->dir_handle);
free(thedir);
+ return status;
}
SWITCH_DECLARE(const char *) switch_dir_next_file(switch_dir_t *thedir, char *buf, switch_size_t len)
More information about the Freeswitch-svn
mailing list