natwarrior / lcdhost

Automatically exported from code.google.com/p/lcdhost
0 stars 0 forks source link

Memwatch tempnam call issue #139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

#include <stdio.h>
#include <stdlib.h>

char *directory = "/tmp";
char *fileprefix = "file";
char *file;

file = tempnam(directory, fileprefix);
free(file);

What is the expected output? What do you see instead?
this generates a unknown pointer 0x350fa0 in memwatch
According to 
http://pubs.opengroup.org/onlinepubs/009695399/functions/tempnam.html, this 
memory is supposed to be freed

What version of the product are you using? On what operating system?
2.71 on arm9

Please provide any additional information below.

Original issue reported on code.google.com by twat...@gmail.com on 24 Oct 2014 at 5:38