mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
fix resource leak
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@989 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 60161ff9c2
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2011-01-01 (Sat, 01 Jan 2011)
Origin message was:
------------------
-fix resource leak
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@989 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -765,7 +765,7 @@ FILE *f_open(const char *filename, const char *acctype)
|
||||
URL url;
|
||||
FILE *fd;
|
||||
int /*i,*/ compatibility_mode = 0;
|
||||
char *ptr = NULL, buf[4096], type[10];
|
||||
char *ptr = NULL, buf[4096] = {0}, type[10] = {0};
|
||||
|
||||
if(acctype)
|
||||
strcpy(type, acctype);
|
||||
@@ -1776,16 +1776,17 @@ STREAM_FILTER *ShoutCAST_InitFilter(int meta_int)
|
||||
|
||||
void ShoutCAST_MetaFilter(STREAM_FILTER *arg)
|
||||
{
|
||||
|
||||
/* bug trap */
|
||||
if(!arg)
|
||||
return;
|
||||
|
||||
FILTERDATA *filterdata = (FILTERDATA*)arg->user;
|
||||
int meta_int = filterdata->meta_int;
|
||||
int len = *arg->len;
|
||||
char*buf = (char*)arg->buf;
|
||||
int meta_start;
|
||||
|
||||
/* bug trap */
|
||||
if(!arg)
|
||||
return;
|
||||
|
||||
#if 0
|
||||
dprintf(stderr, "filter : cnt : %d\n", filterdata->cnt);
|
||||
dprintf(stderr, "filter : len : %d\n", filterdata->len);
|
||||
|
@@ -190,6 +190,7 @@ int fh_bmp_load(const char *name,unsigned char **buffer,int* xp,int* yp)
|
||||
if(tbuffer==NULL)
|
||||
{
|
||||
printf("Error: malloc\n");
|
||||
close(fd);
|
||||
return (FH_ERROR_MALLOC);
|
||||
}
|
||||
for (i=0; i<y; i++)
|
||||
|
Reference in New Issue
Block a user