Browse Source

keystore test: fix invalid free

pull/39/head
Thomas Guillem 11 years ago
parent
commit
e6ea1bfbfc
  1. 3
      test/modules/keystore/test.c

3
test/modules/keystore/test.c

@ -85,7 +85,8 @@ ks_find(vlc_keystore *p_keystore, const char *const ppsz_values[KEY_MAX],
assert(strcmp(psz_value1, psz_value2) == 0);
}
}
vlc_keystore_release_entries(p_entries, i_entries);
if (i_entries > 0)
vlc_keystore_release_entries(p_entries, i_entries);
return i_entries;
}

Loading…
Cancel
Save