Ignore:
Timestamp:
Sep 21, 2009, 11:48:42 AM (16 years ago)
Author:
Saskia Metzler <metzler@…>
Children:
14db08, 39d983
Parents:
bc3953
Message:

Ticket 11: use templates and/or traits to fix Malloc/ReAlloc-Free warnings in a clean manner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/analyzer.cpp

    rbc3953 r390a2b  
    1010#include "datacreator.hpp"
    1111#include "helpers.hpp"
     12#include "memoryallocator.hpp"
    1213#include "parser.hpp"
    1314#include "periodentafel.hpp"
     
    7273    return 1;
    7374  } else {
    74     dir = (char *) Malloc(sizeof(char)*(strlen(argv[2])+2), "main: *dir");
     75    dir = Malloc<char>(strlen(argv[2]) + 2, "main: *dir");
    7576    strcpy(dir, "/");
    7677    strcat(dir, argv[2]);
     
    555556  // ++++++++++++++++ exit ++++++++++++++++++++++++++++++++++
    556557  delete(periode);
    557   Free((void **)&dir, "main: *dir");
     558  Free(&dir);
    558559  cout << "done." << endl;
    559560  return 0;
Note: See TracChangeset for help on using the changeset viewer.