Return to upnpdev.c CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpd / miniupnpc / src |
1.1 ! misho 1: /* $Id: upnpdev.c,v 1.1 2015/08/28 12:14:19 nanard Exp $ */ ! 2: /* Project : miniupnp ! 3: * Web : http://miniupnp.free.fr/ ! 4: * Author : Thomas BERNARD ! 5: * copyright (c) 2005-2015 Thomas Bernard ! 6: * This software is subjet to the conditions detailed in the ! 7: * provided LICENSE file. */ ! 8: #include <stdlib.h> ! 9: #include "upnpdev.h" ! 10: ! 11: /* freeUPNPDevlist() should be used to ! 12: * free the chained list returned by upnpDiscover() */ ! 13: void freeUPNPDevlist(struct UPNPDev * devlist) ! 14: { ! 15: struct UPNPDev * next; ! 16: while(devlist) ! 17: { ! 18: next = devlist->pNext; ! 19: free(devlist); ! 20: devlist = next; ! 21: } ! 22: } ! 23: