~ubuntu-branches/ubuntu/karmic/valgrind/karmic

« back to all changes in this revision

Viewing changes to exp-omega/tests/scope2.c

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-01-06 11:28:10 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080106112810-segj25s87z9zd7i5
Tags: 1:3.3.0-1ubuntu1
* Merge with Debian, remaining changes:
 - Add 91_build_with_fno_stack_protector.dpatch
 - Add lpia to Architecture

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdlib.h>
 
2
 
 
3
static void func1(void)
 
4
{
 
5
  char *pointer = 0;
 
6
 
 
7
  pointer = malloc(64); /* Line 7 */
 
8
 
 
9
  return;
 
10
}                      /* Leak report Line 10 */
 
11
 
 
12
int main(int argc, char *argv[])
 
13
{
 
14
  func1();
 
15
 
 
16
  return 0;
 
17
}