Fixed a couple of memory leaks

This commit is contained in:
Mark Riddoch
2014-05-23 09:08:02 +01:00
parent 3b984d2773
commit 23a9759fca
2 changed files with 16 additions and 0 deletions

View File

@ -398,6 +398,12 @@ int prev_val;
router,
prev_val-1)));
if (slave->hostname)
free(slave->hostname);
if (slave->user)
free(slave->user);
if (slave->passwd)
free(slave->passwd);
free(slave);
}