Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A simple librecode program leaks a lot of memory #7

Closed
shlomif opened this issue Apr 22, 2016 · 5 comments
Closed

A simple librecode program leaks a lot of memory #7

shlomif opened this issue Apr 22, 2016 · 5 comments

Comments

@shlomif
Copy link

shlomif commented Apr 22, 2016

Hi!

This program when built using «gcc -Wall -g recode-test.c -lrecode» and run under «valgrind --leak-check=full --show-leak-kinds=all ./a.out» emits a lot of memory leak errors:

#include <stdio.h>
#include <stdbool.h>
#include        <recode.h>
RECODE_OUTER outer;

int main(int ac, char *av[])
{
    outer = recode_new_outer(true);
    recode_delete_outer(outer);

    return 0;
}

Please look into fixing it.

@shlomif
Copy link
Author

shlomif commented Apr 22, 2016

I should note that I'm on Mageia Linux x86-64 v6 using lib64recode-devel-3.6-28.mga6 .

@rrthomas
Copy link

I just ran this with the current development version of librecode at rrthomas/Recode, and got:

==17795== All heap blocks were freed -- no leaks are possible

@shlomif
Copy link
Author

shlomif commented Jan 16, 2018 via email

@rrthomas
Copy link

Fixed: I have taken over the project at https://github.com/rrthomas/

@shlomif
Copy link
Author

shlomif commented Jan 19, 2018

Thanks, @rrthomas ! Closing then.

@shlomif shlomif closed this as completed Jan 19, 2018
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

No branches or pull requests

2 participants