2005-12-01 22:14:27 +00:00
|
|
|
/*
|
|
|
|
*
|
2013-09-05 12:39:22 +00:00
|
|
|
* (c) 2005 Laurent Vivier <Laurent@Vivier.EU>
|
2005-12-01 22:14:27 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "libcontainer.h"
|
2008-04-20 16:20:54 +00:00
|
|
|
#include "container.h"
|
2005-12-01 22:14:27 +00:00
|
|
|
|
2008-04-20 16:20:54 +00:00
|
|
|
void container_close(stream_FILE *file)
|
2005-12-01 22:14:27 +00:00
|
|
|
{
|
|
|
|
if (file == NULL)
|
2008-04-20 16:20:54 +00:00
|
|
|
return;
|
2005-12-01 22:14:27 +00:00
|
|
|
|
2008-04-20 16:20:54 +00:00
|
|
|
if (((container_FILE*)file)->container)
|
|
|
|
free(((container_FILE*)file)->container);
|
2005-12-01 22:14:27 +00:00
|
|
|
|
|
|
|
free(file);
|
|
|
|
|
2008-04-20 16:20:54 +00:00
|
|
|
return;
|
2005-12-01 22:14:27 +00:00
|
|
|
}
|