# HG changeset patch # User ib # Date 1368016796 0 # Node ID 29c690aefc6f6f0ed56468664ba0a84ba69a0bab # Parent 319cbb4d09678cd3603457f05fb9906cb9717baf Fix resource leak. diff -r 319cbb4d0967 -r 29c690aefc6f gui/util/list.c --- a/gui/util/list.c Wed May 08 12:37:28 2013 +0000 +++ b/gui/util/list.c Wed May 08 12:39:56 2013 +0000 @@ -367,8 +367,10 @@ item = calloc(1, sizeof(plItem)); - if (!item) + if (!item) { + free(path); return False; + } mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[list] adding %s/%s\n", path, file);