Skip to content

Commit

Permalink
fix memleaks of view ext
Browse files Browse the repository at this point in the history
  • Loading branch information
laruence committed Sep 9, 2012
1 parent 762cb16 commit ed30e80
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion yaf.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
+----------------------------------------------------------------------+
*/

/* $Id: yaf.c 327514 2012-09-07 04:31:34Z laruence $ */
/* $Id: yaf.c 327563 2012-09-09 07:02:00Z laruence $ */

#ifdef HAVE_CONFIG_H
#include "config.h"
Expand Down Expand Up @@ -234,6 +234,10 @@ PHP_RSHUTDOWN_FUNCTION(yaf)
}
YAF_G(default_route) = NULL;

if (YAF_G(view_ext) != YAF_DEFAULT_VIEW_EXT) {
efree(YAF_G(view_ext));
}

return SUCCESS;
}
/* }}} */
Expand Down

0 comments on commit ed30e80

Please sign in to comment.