fix memory leak: use object specific release method

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2088 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2005-01-21 10:04:22 +00:00
parent d644979168
commit 2e1ae46257
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ sc_profile_free(struct sc_profile *profile)
while ((ti = profile->template_list) != NULL) {
profile->template_list = ti->next;
if (ti->data)
free(ti->data);
sc_profile_free(ti->data);
if (ti->name)
free(ti->name);
free(ti);