Skip to content

Fix defects#649

Merged
cfsmp3 merged 3 commits intoCCExtractor:masterfrom
sidgairo18:fix_defects
Jan 17, 2017
Merged

Fix defects#649
cfsmp3 merged 3 commits intoCCExtractor:masterfrom
sidgairo18:fix_defects

Conversation

@sidgairo18
Copy link
Copy Markdown
Contributor

Refer issue #648

if (written != context->encoded_crlf_length)
{
{
free(el);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I know, the CCExtractor uses its own freep as a wrapper for free

@sidgairo18
Copy link
Copy Markdown
Contributor Author

sidgairo18 commented Jan 16, 2017

In this case free() does the job.
freep() is for deallocating double pointers. See function definition-

void freep(void *arg)                                                   
{                                                                       
    void **ptr = (void **)arg;                                          
    if (*ptr)                                                           
        free(*ptr);                                                     
    *ptr = NULL;                                                        
                                                                        
}

@maxkoryukov
Copy link
Copy Markdown
Contributor

@sidgairo18 , sorry, my mistake

@cfsmp3 cfsmp3 merged commit fad623e into CCExtractor:master Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants