Given the following script:
%typemap(in,noblock=1) int * { $1 = malloc(sizeof(int)); if($1 == NULL) { return $null; } } %typemap(freearg,noblo