--- services.c-old 2005-08-26 12:19:01.000000000 -0400 +++ services.c 2005-08-26 12:18:18.000000000 -0400 @@ -548,11 +548,14 @@ int sepol_context_to_sid(sepol_security_ goto err; context_destroy(context); + free(context); return STATUS_SUCCESS; err: - if (context) + if (context) { context_destroy(context); + free(context); + } DEBUG(__FUNCTION__, "could not convert %s to sid\n", scontext); return STATUS_ERR; }